mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestAbstractFactoryObject.java
@Test
    public void testIsManaged() throws Exception
    {
        Set<AbstractFactoryObject> objects = new HashSet<>();
        objects.add(m_SUT);
        when(m_Registry.getObjects()).thenReturn(objects);
        
        assertThat(m_SUT.isManaged(), is(true));
        
        objects.remove(m_SUT);

        assertThat(m_SUT.isManaged(), is(false));
    }
/**
     * Verify that you can check if an object is managed by the directory service.
     */
Verify that you can check if an object is managed by the directory service.
Verify that you can check if an object is managed by the directory service .
@Test
    public void testIsManaged() throws Exception
    {
        Set<AbstractFactoryObject> objects = new HashSet<>();
        objects.add(m_SUT);
        when(m_Registry.getObjects()).thenReturn(objects);
        assertThat(m_SUT.isManaged(), is(true));
        objects.remove(m_SUT);
        assertThat(m_SUT.isManaged(), is(false));
    }
@ Test public void testIsManaged ( ) throws Exception { Set < AbstractFactoryObject > objects = new HashSet < > ( ) ; objects . add ( m_SUT ) ; when ( m_Registry . getObjects ( ) ) . thenReturn ( objects ) ; assertThat ( m_SUT . isManaged ( ) , is ( true ) ) ; objects . remove ( m_SUT ) ; assertThat ( m_SUT . isManaged ( ) , is ( false ) ) ; }
Verify that you can check if an object is managed by the directory service.
Verify that you can check if an object is managed by the directory service .