public static String cleanUpTestName(String methodName) {
    int index = methodName.indexOf('[');
    if (index == -1) {
      return methodName;
    }
    return methodName.substring(0, index);
  }
Helper to handle parameterized method names. Unlike regular test methods, parameterized method
names look like 'foo[x]'. This is problematic for tests that use this name for HBase tables.
This helper strips out the parameter suffixes.
@return current test method name with out parameterized suffixes.
hbase-common/src/test/java/org/apache/hadoop/hbase/TableNameTestRule.java