mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestRemoteServiceCommands.java
@Test
    public void testRemoteSystemEncryption()
    {
        // service is set to null as this would be true if the component was activated and the optional 
        //service was not available
        assertThat("Command 'rmtSysEnct' returns the null because the service is not set", m_SUT.rmtSysEnct(), 
                is(nullValue()));
        
        //now mock the service
        RemoteSystemEncryption remoteSystemEncryption = mock(RemoteSystemEncryption.class);
        
        m_SUT.setRemoteSystemEncryption(remoteSystemEncryption);
        
        assertThat("Command 'rmtSysEnct' returns the null because the service is not set", m_SUT.rmtSysEnct(), 
                is(remoteSystemEncryption));
    }
/**
     * Verify that the remote system encryption service command will retrieve the correct service or return null 
     * if the service is not available.
     */
Verify that the remote system encryption service command will retrieve the correct service or return null
if the service is not available.
Verify that the remote system encryption service command will retrieve the correct service or return null if the service is not available .
@Test
    public void testRemoteSystemEncryption()
    {
        assertThat("Command 'rmtSysEnct' returns the null because the service is not set", m_SUT.rmtSysEnct(), 
                is(nullValue()));
        RemoteSystemEncryption remoteSystemEncryption = mock(RemoteSystemEncryption.class);
        m_SUT.setRemoteSystemEncryption(remoteSystemEncryption);
        assertThat("Command 'rmtSysEnct' returns the null because the service is not set", m_SUT.rmtSysEnct(), 
                is(remoteSystemEncryption));
    }
@ Test public void testRemoteSystemEncryption ( ) { assertThat ( "Command 'rmtSysEnct' returns the null because the service is not set" , m_SUT . rmtSysEnct ( ) , is ( nullValue ( ) ) ) ; RemoteSystemEncryption remoteSystemEncryption = mock ( RemoteSystemEncryption . class ) ; m_SUT . setRemoteSystemEncryption ( remoteSystemEncryption ) ; assertThat ( "Command 'rmtSysEnct' returns the null because the service is not set" , m_SUT . rmtSysEnct ( ) , is ( remoteSystemEncryption ) ) ; }
Verify that the remote system encryption service command will retrieve the correct service or return null
 if the service is not available.
Verify that the remote system encryption service command will retrieve the correct service or return null if the service is not available .
// service is set to null as this would be true if the component was activated and the optional  //service was not available //now mock the service