mil.dod.th.ose.datastream/test/mil/dod/th/ose/datastream/TestDataStreamServiceImpl.java
@SuppressWarnings("unchecked")
    @Test
    public void testActivation() throws Exception
    {
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(DataStreamServiceConfig.CONFIG_PROP_MULTICAST_HOST, "225.1.2.3");
        props.put(DataStreamServiceConfig.CONFIG_PROP_START_PORT, 5004);
        
        m_SUT.activate(Collections.unmodifiableMap(props), m_BundleContext);
        verify(m_ServiceContextFactory).newInstance(null);
        verify(m_ServiceContext).initialize(m_BundleContext, m_FactoryServiceProxy, m_SUT);
    }
/**
     * Verify registry and service context are initialized properly.
     */
Verify registry and service context are initialized properly.
Verify registry and service context are initialized properly .
@SuppressWarnings("unchecked")
    @Test
    public void testActivation() throws Exception
    {
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(DataStreamServiceConfig.CONFIG_PROP_MULTICAST_HOST, "225.1.2.3");
        props.put(DataStreamServiceConfig.CONFIG_PROP_START_PORT, 5004);
        m_SUT.activate(Collections.unmodifiableMap(props), m_BundleContext);
        verify(m_ServiceContextFactory).newInstance(null);
        verify(m_ServiceContext).initialize(m_BundleContext, m_FactoryServiceProxy, m_SUT);
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testActivation ( ) throws Exception { Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( DataStreamServiceConfig . CONFIG_PROP_MULTICAST_HOST , "225.1.2.3" ) ; props . put ( DataStreamServiceConfig . CONFIG_PROP_START_PORT , 5004 ) ; m_SUT . activate ( Collections . unmodifiableMap ( props ) , m_BundleContext ) ; verify ( m_ServiceContextFactory ) . newInstance ( null ) ; verify ( m_ServiceContext ) . initialize ( m_BundleContext , m_FactoryServiceProxy , m_SUT ) ; }
Verify registry and service context are initialized properly.
Verify registry and service context are initialized properly .