question: private static String cleanMethodName ( final String methodName ) { if ( methodName . endsWith ( "]" ) ) { return methodName . substring ( 0 , methodName . indexOf ( "[" ) ) ; } return methodName ; }
target:  If using "parameterized test" junit will append an identifier to the end of the method name which prevents it from being found via reflection.  This method removes that suffix.