mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/core/TestPersistedAddresses.java
@Test
    public void testAddressesRestored() throws InterruptedException, CCommException
    {
        // wait until address factory has been registered, at that point all addresses must be restored
        IntegrationTestRunner.assertServiceReferenceFound("exampleAddressFactory", 5000);
        
        AddressManagerService addressMgrSvc = IntegrationTestRunner.getService(AddressManagerService.class);
        List<String> addressStrings = addressMgrSvc.getAddressDescriptiveStrings();
        
        // Ensure the addresses are still in the lookup
        assertThat(addressStrings, hasItem("Example:1001"));
        assertThat(addressStrings, hasItem("Example:1002"));
        assertThat(addressStrings, hasItem("Example:1003"));
    }
/**
     * Verify addresses created in {@link mil.dod.th.ose.controller.integration.TestPrepFor2ndRun#createAddresses()} are
     * still around.
     */
Verify addresses created in  mil.dod.th.ose.controller.integration.TestPrepFor2ndRun#createAddresses() are
still around.
Verify addresses created in mil . dod . th . ose . controller . integration . TestPrepFor2ndRun#createAddresses () are still around .
@Test
    public void testAddressesRestored() throws InterruptedException, CCommException
    {
        IntegrationTestRunner.assertServiceReferenceFound("exampleAddressFactory", 5000);
        AddressManagerService addressMgrSvc = IntegrationTestRunner.getService(AddressManagerService.class);
        List<String> addressStrings = addressMgrSvc.getAddressDescriptiveStrings();
        assertThat(addressStrings, hasItem("Example:1001"));
        assertThat(addressStrings, hasItem("Example:1002"));
        assertThat(addressStrings, hasItem("Example:1003"));
    }
@ Test public void testAddressesRestored ( ) throws InterruptedException , CCommException { IntegrationTestRunner . assertServiceReferenceFound ( "exampleAddressFactory" , 5000 ) ; AddressManagerService addressMgrSvc = IntegrationTestRunner . getService ( AddressManagerService . class ) ; List < String > addressStrings = addressMgrSvc . getAddressDescriptiveStrings ( ) ; assertThat ( addressStrings , hasItem ( "Example:1001" ) ) ; assertThat ( addressStrings , hasItem ( "Example:1002" ) ) ; assertThat ( addressStrings , hasItem ( "Example:1003" ) ) ; }
Verify addresses created in {@link mil.dod.th.ose.controller.integration.TestPrepFor2ndRun#createAddresses()} are
 still around.
Verify addresses created in { @link mil . dod . th . ose . controller . integration . TestPrepFor2ndRun#createAddresses () } are still around .
// wait until address factory has been registered, at that point all addresses must be restored // Ensure the addresses are still in the lookup