### Question:
AbstractConfig implements Serializable { protected static void checkKey(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_KEY); }  @Parameter(excluded = true) String getId(); void setId(String id); void updateIdIfAbsent(String value); Map<String, String> getMetaData(); @Parameter(excluded = true) String getPrefix(); void setPrefix(String prefix); void refresh(); @Override String toString(); @Parameter(excluded = true) boolean isValid();  }### Answer:
@Test public void checkKey() throws Exception { try { AbstractConfig.checkKey("hello", "*,-0123abcdABCD"); } catch (Exception e) { fail("the value should be legal."); } }