### Question:
ServiceBarrierManager implements IServiceBarrierManager { @Override public List<IServiceBarrier> getAllServiceBarriers() { return new ArrayList<IServiceBarrier>( barriers.values() ); }  @Override IServiceBarrier getServiceBarrier( String serviceID ); @Override List<IServiceBarrier> getAllServiceBarriers();  }### Answer:
@Test public void testGetAllServiceBarriers() throws Exception { assertEquals( 2, manager.getAllServiceBarriers().size() ); assertTrue( manager.getAllServiceBarriers().contains( barrier1 ) ); assertTrue( manager.getAllServiceBarriers().contains( barrier2 ) ); }