private static String cleanMethodName(final String methodName){
  if (methodName.endsWith("]")) {
    return methodName.substring(0,methodName.indexOf("["));
  }
  return methodName;
}

private static String cleanMethodName ( final String methodName ) { if ( methodName . endsWith ( "]" ) ) { return methodName . substring ( 0 , methodName . indexOf ( "[" ) ) ; } return methodName ; }
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 .
