mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryServiceContextImpl.java
@Test
    public void testGetAdditionalFactoryRegProps()
    {
        FactoryInternal factory = mock(FactoryInternal.class);
        
        Dictionary<String, Object> props = new Hashtable<>();
        props.put("key1", "value1");
        when(m_FactoryServiceProxy.getAdditionalFactoryRegistrationProps(factory))
            .thenReturn(props);
        
        assertThat(m_SUT.getAdditionalFactoryRegistrationProps(factory), is(props));
    }
/**
     * Verify value returned matches that of the proxy.
     */
Verify value returned matches that of the proxy.
Verify value returned matches that of the proxy .
@Test
    public void testGetAdditionalFactoryRegProps()
    {
        FactoryInternal factory = mock(FactoryInternal.class);
        Dictionary<String, Object> props = new Hashtable<>();
        props.put("key1", "value1");
        when(m_FactoryServiceProxy.getAdditionalFactoryRegistrationProps(factory))
            .thenReturn(props);
        assertThat(m_SUT.getAdditionalFactoryRegistrationProps(factory), is(props));
    }
@ Test public void testGetAdditionalFactoryRegProps ( ) { FactoryInternal factory = mock ( FactoryInternal . class ) ; Dictionary < String , Object > props = new Hashtable < > ( ) ; props . put ( "key1" , "value1" ) ; when ( m_FactoryServiceProxy . getAdditionalFactoryRegistrationProps ( factory ) ) . thenReturn ( props ) ; assertThat ( m_SUT . getAdditionalFactoryRegistrationProps ( factory ) , is ( props ) ) ; }
Verify value returned matches that of the proxy.
Verify value returned matches that of the proxy .