AbstractConfig implements Serializable { protected static void checkMultiName(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_MULTI_NAME); }  @Parameter(excluded = true) String getId(); void setId(String id); @Override String toString();  }
@Test public void checkMultiName() throws Exception { try { AbstractConfig.checkMultiName("hello", ",-._0123abcdABCD"); } catch (Exception e) { TestCase.fail("the value should be legal."); } }