mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TestServerSocketChannel.java
@Test
    public void testIsSslEnabled()
    {
        // mock the socket
        Socket socket = mock(SSLSocket.class);
        
        // activate the component
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(ServerSocketChannel.SOCKET_PROP_KEY, socket);
        m_SUT.activate(props);
        
        assertThat(m_SUT.isSslEnabled(), is(true));
    }
/**
     * Verify SSL flag returned is the one associated with the incoming socket. 
     */
Verify SSL flag returned is the one associated with the incoming socket.
Verify SSL flag returned is the one associated with the incoming socket .
@Test
    public void testIsSslEnabled()
    {
        Socket socket = mock(SSLSocket.class);
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(ServerSocketChannel.SOCKET_PROP_KEY, socket);
        m_SUT.activate(props);
        assertThat(m_SUT.isSslEnabled(), is(true));
    }
@ Test public void testIsSslEnabled ( ) { Socket socket = mock ( SSLSocket . class ) ; Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( ServerSocketChannel . SOCKET_PROP_KEY , socket ) ; m_SUT . activate ( props ) ; assertThat ( m_SUT . isSslEnabled ( ) , is ( true ) ) ; }
Verify SSL flag returned is the one associated with the incoming socket.
Verify SSL flag returned is the one associated with the incoming socket .
// mock the socket // activate the component