### Question:
AbstractConfig implements Serializable { protected static void checkName(String property, String value) { checkProperty(property, value, MAX_LENGTH, PATTERN_NAME); }  @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 checkName() throws Exception { Assertions.assertThrows(IllegalStateException.class, () -> AbstractConfig.checkName("hello", "world%")); }