### Question:
InfrastructureManager implements ServiceInfrastructure { @Override public void setParentsRoute(List<String> identifiers) throws EmptyIdentifierFailureException, NullPointerFailureException { if (identifiers == null) throw new NullPointerFailureException(); if (identifiers.isEmpty()) throw new EmptyIdentifierFailureException(); parentsRoute.clear(); parentsRoute.addAll(identifiers); } 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 testSetParentsRoute() { try { manager.setParentsRoute(null); fail("Don't throw NullPointerFailureException exception, because an input was a NULL pointer!"); } catch (EmptyIdentifierFailureException e) { e.printStackTrace(); fail("An input was a NULL pointer and not an empty collection!"); } catch (NullPointerFailureException e) { assertTrue("Detecting NullPointerFailureException exception.",true); } List<String> inputParentsRoute = new ArrayList<String>(); try { manager.setParentsRoute(inputParentsRoute); fail("Don't throw EmptyIdentifierFailureException exception, because an input list was empty!"); } catch (EmptyIdentifierFailureException e) { assertTrue("Detecting EmptyIdentifierFailureException exception.",true); } catch (NullPointerFailureException e) { fail("Input was a valid value and not NULL pointer!"); } inputParentsRoute.add("test_parent"); try { manager.setParentsRoute(inputParentsRoute); } catch (EmptyIdentifierFailureException e) { fail("Input parents list was not empty!"); } catch (NullPointerFailureException e) { fail("Input parents list was not NULL pointer!"); } assertEquals(inputParentsRoute, manager.getParentsRoute()); }