### Question:
InfrastructureManager implements ServiceInfrastructure { public InfrastructureManager() { parentsRoute = new ArrayList<String>(); try { Class.forName("org.h2.Driver"); } catch (ClassNotFoundException e) { Log.logException("", e); } try { String h2db = EMIRServer.getServerProperties().getValue( ServerProperties.PROP_H2_DBFILE_PATH); if (h2db == null || h2db.isEmpty()) { h2db = "/var/lib/emi/emir/data/Emiregistry"; } conn = DriverManager.getConnection("jdbc:h2:" + h2db, "sa", ""); stat = conn.createStatement(); stat.execute("create table " + dbname + "(id varchar(255) primary key, new int, del int)"); } catch (SQLException e) { if (e.toString().substring(30, 60) .equals("Database may be already in use")) { logger.error("DB locked! " + e); } else if (e.toString().substring(30, 64) .equals("Table \"EMIREGISTRY\" already exists")) { if (logger.isDebugEnabled()) { logger.debug("DB exist. " + e); } } else { logger.error("Other SQL exception: " + e); } } } InfrastructureManager(); @Override void setParentsRoute(List<String> identifiers); @Override List<String> getParentsRoute(); @Override List<String> getChildDSRs(); @Override void addChildDSR(String identifier); @Override void setParent(String identifier); @Override String getParent(); void handleRegistration(List<String> identifiers); void handleUpdate(List<String> identifiers); void handleDelete(String identifier); boolean dbSynchronization(List<String> ids, Method method,
			int responsestatus);  }### Answer:
@Test public void testInfrastructureManager() { List<String> parents = manager.getParentsRoute(); if (!parents.isEmpty()) fail("Can not clean the parents collection!"); List<String> childs = manager.getChildDSRs(); if (!childs.isEmpty()) fail("Can not clean the childs collection!"); assertEquals(parents.isEmpty(),childs.isEmpty()); }