### Question:
JsApiCache extends ApiEntry { String getApiDescription() { StringBuilder builder = new StringBuilder(); builder.append("{"); super.createDescription(builder); builder.append("}"); return builder.toString(); } private  JsApiCache();   }### Answer:
@Test void createsDescriptionForAllApiEntries() { JsApiCache.Builder builder = new JsApiCache.Builder(); builder.add("foo", new ApiEntry() { @Override protected void createDescription(StringBuilder builder) { builder.append("desc"); } }); JsApiCache cache = builder.build(); String description = cache.getApiDescription(); assertThat(description).isEqualTo("{\"foo\":desc}"); }