mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryDescriptorImpl.java
@SuppressWarnings("unchecked")
    @Test
    public void testCleanup() throws InterruptedException, UnmarshalException
    {
        m_SUT.registerServices();
        m_SUT.makeAvailable();
        
        verify(coreBundleContext, timeout(3000)).registerService(eq(FactoryDescriptor.class), eq(m_SUT), 
                Mockito.any(Dictionary.class));
        
        m_SUT.cleanup();
        verify(metaServiceReg).unregister();
        verify(descriptorServiceReg).unregister();
    }
/*
     * Verify that the other factory service registrations are cleaned up.
     */
Verify that the other factory service registrations are cleaned up.
Verify that the other factory service registrations are cleaned up .
@SuppressWarnings("unchecked")
    @Test
    public void testCleanup() throws InterruptedException, UnmarshalException
    {
        m_SUT.registerServices();
        m_SUT.makeAvailable();
        verify(coreBundleContext, timeout(3000)).registerService(eq(FactoryDescriptor.class), eq(m_SUT), 
                Mockito.any(Dictionary.class));
        m_SUT.cleanup();
        verify(metaServiceReg).unregister();
        verify(descriptorServiceReg).unregister();
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testCleanup ( ) throws InterruptedException , UnmarshalException { m_SUT . registerServices ( ) ; m_SUT . makeAvailable ( ) ; verify ( coreBundleContext , timeout ( 3000 ) ) . registerService ( eq ( FactoryDescriptor . class ) , eq ( m_SUT ) , Mockito . any ( Dictionary . class ) ) ; m_SUT . cleanup ( ) ; verify ( metaServiceReg ) . unregister ( ) ; verify ( descriptorServiceReg ) . unregister ( ) ; }
Verify that the other factory service registrations are cleaned up.
Verify that the other factory service registrations are cleaned up .