### Question:
AbstractConfig implements Serializable { protected static void checkPathLength(String property, String value) { checkProperty(property, value, MAX_PATH_LENGTH, null); }  @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 checkPathLength() throws Exception { Assertions.assertThrows(IllegalStateException.class, () -> { StringBuilder builder = new StringBuilder(); for (int i = 0; i <= 200; i++) { builder.append("a"); } AbstractConfig.checkPathLength("hello", builder.toString()); }); }