### Question:
ArrayEntry extends ApiEntry { @Override protected void createDescription(StringBuilder builder) { builder.append("{"); builder.append("\"--type\":\"array\",\"--elementType\":\"").append(elementType.getName()).append("\""); builder.append("}"); } private  ArrayEntry(); Class<?> getElementType();  }### Answer:
@Test void addsAllClassMethodsInAnObject() { ArrayEntry.Builder builder = new ArrayEntry.Builder(); builder.setElementType(String.class); ArrayEntry entry = builder.build(); StringBuilder descBuilder = new StringBuilder(); entry.createDescription(descBuilder); assertThat(descBuilder.toString()).isEqualTo("{\"--type\":\"array\",\"--elementType\":\"java.lang.String\"}"); }