### Question:
AbstractConfig implements Serializable { protected static void checkNameHasSymbol(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_NAME_HAS_SYMBOL); }  @Parameter(excluded = true) String getId(); void setId(String id); @Override String toString();  }### Answer:
@Test public void checkNameHasSymbol() throws Exception { try { AbstractConfig.checkNameHasSymbol("hello", ":*,/-0123abcdABCD"); } catch (Exception e) { TestCase.fail("the value should be legal."); } }