mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryConfigurationService.java
@Test
    public void testDeleted() throws IllegalArgumentException, FactoryObjectInformationException
    {
        FactoryObjectInternal obj = mock(FactoryObjectInternal.class);
        String pid = "oldCar";
        when(m_FactoryReg.getObjectByPid(pid)).thenReturn(obj);
        
        m_SUT.deleted(pid);
        
        //verify
        verify(m_FactoryReg).unAssignPidForObj(obj);
    }
/**
     * Verify removal of pid from registry if a configuration is deleted thus the pid is no longer
     * valid.
     */
Verify removal of pid from registry if a configuration is deleted thus the pid is no longer
valid.
Verify removal of pid from registry if a configuration is deleted thus the pid is no longer valid .
@Test
    public void testDeleted() throws IllegalArgumentException, FactoryObjectInformationException
    {
        FactoryObjectInternal obj = mock(FactoryObjectInternal.class);
        String pid = "oldCar";
        when(m_FactoryReg.getObjectByPid(pid)).thenReturn(obj);
        m_SUT.deleted(pid);
        verify(m_FactoryReg).unAssignPidForObj(obj);
    }
@ Test public void testDeleted ( ) throws IllegalArgumentException , FactoryObjectInformationException { FactoryObjectInternal obj = mock ( FactoryObjectInternal . class ) ; String pid = "oldCar" ; when ( m_FactoryReg . getObjectByPid ( pid ) ) . thenReturn ( obj ) ; m_SUT . deleted ( pid ) ; verify ( m_FactoryReg ) . unAssignPidForObj ( obj ) ; }
Verify removal of pid from registry if a configuration is deleted thus the pid is no longer
 valid.
Verify removal of pid from registry if a configuration is deleted thus the pid is no longer valid .
//verify