### Question:
Database { public ConceptBreakdown addConceptBreakdown(String code) { ConceptBreakdown bd = getExistingConceptBreakdown(code); if (bd == null) { bd = new ConceptBreakdown(code); orphanBreakdowns.put(code, bd); } return bd; }  String getFileProperty(); void setFileProperty(String fileProperty); String getFileFormat(); void setFileFormat(String fileFormat); String getGeneratedBy(); void setGeneratedBy(String generatedBy); String getHeader(); void setHeader(String header); Charset getCharset(); void setCharset(Charset charset); String getComments(); void setComments(String comments); int getInfoType(); void setInfoType(int infoType); int getCertNum(); void setCertNum(int certNum); Date getCertDate(); void setCertDate(Date certDate); ConceptBreakdown getRoot(); ConceptBreakdown setRoot(String code); ConceptBreakdown addConceptBreakdown(String code); ConceptBreakdown addConceptBreakdown(String parentCode, String code); Concept getConcept(String code); Concept getConcept(ConceptBreakdown bd); Concept getOrAddConcept(String code); boolean hasOrphanedConceptBreakdowns(); boolean hasOrphanedMeasurements(); Measurement createMeasurement(); void setMeasurement(String conceptCode, Measurement measurement); @Override String toString();  }### Answer:
@Test public void testAddConceptBreakdown() { ConceptBreakdown bd = database.addConceptBreakdown("test"); assertEquals(null, bd.getParentConceptCode()); assertEquals("test", bd.getConceptCode()); assertTrue(database.hasOrphanedConceptBreakdowns()); ConceptBreakdown bd3 = database.addConceptBreakdown("parent", "test"); assertEquals("parent", bd3.getParentConceptCode()); assertEquals("test", bd3.getConceptCode()); assertTrue(database.hasOrphanedConceptBreakdowns()); database.setRoot("parent"); assertFalse(database.hasOrphanedConceptBreakdowns()); ConceptBreakdown bd2 = database.addConceptBreakdown("parent", "child"); assertEquals("parent", bd2.getParentConceptCode()); assertEquals("child", bd2.getConceptCode()); assertFalse(database.hasOrphanedConceptBreakdowns()); }