Was your inner class `static`?

http://stackoverflow.com/questions/8758294/test-cases-in-inner-classes-with-junit