Question: I have TestNG tests that are grouped with the (groups = "unit") annotation as unit or integration and run using the following Maven config:

```
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.7.2</version>
            <configuration>
                <groups>${test.group}</groups>
                <includes>
                    <include>**/*Test.java</include>
                    <include>**/Test*.java</include>
                    <include>**/When*.java</include>
                </includes>
                <argLine>${test.args.unit} -Xmx1024m</argLine>
            </configuration>
        </plugin>

```

I would like to separate test groups by directory structure instead of annotations and place the unit tests under a directory called unit.

So for example a unit tests in: src/test/java/foo/FooTests/MyFoo.java
I want to move it to: src/test/java/foo/unit/FooTests/MyFoo.java.
Then change the Maven config to pick up Java files under a unit subdir for unit tests.

I tried doing this by changing the plugin config to use the following include:

```
            <groups>${test.group}</groups>
            <includes>
                <include>**/unit/**/*Test.java</include>
                <include>**/unit/**/Test*.java</include>
                <include>**/unit/**/When*.java</include>
            </includes>

```

But that doesn't seem to work. Any ideas?

Answer: 
You can do:

```
>>> 'Hello'[::-1]
'olleH'

```

[Sample](http://ideone.com/19T5EI)
As **Mike Christensen** above wrote, you could easily do `'Hello'[::-1]`.

However, that's a Python-specific thing. What you could do in general if you're working in other languages, including languages that don't allow for negative list slicing, would be something more like:

```
def getbackwards(input_string):
   output = ''
   for x in range(0,len(input_string),-1):
       output += input_string[x]
   return output

```

You of course would not actually do this in Python, but just wanted to give you an example.