### Question:
ComponentTypeNestedModel implements Serializable { @Override public String toString() { return addChildTypeLabels(this); } @SuppressWarnings({"squid:S2637", "squid:S1186"})  ComponentTypeNestedModel(); List<String> findComponentTypeChildren(); Map<String, ComponentType> findParents(ComponentTypeNestedModel nestedModel, String componentTypeId); @Override String toString(); ComponentTypeView getComponentType(); void setComponentType(ComponentTypeView componentType); List<ComponentTypeNestedModel> getChildren(); void setChildren(List<ComponentTypeNestedModel> children);  }### Answer:
@Test public void testToString() { System.out.println("toString"); ComponentTypeNestedModel instance = getData(); String expResult = "root<-Fruit\n" + "root<-Table\n" + "Fruit<-Apple\n" + "Fruit<-Orange\n" + "Apple<-Gala\n"; String result = instance.toString(); System.out.println(result); assertEquals(expResult, result); }