mil.dod.th.ose.gui.remote.encryption/test/mil/dod/th/ose/gui/remotesystemencryption/TestRemoteSystemEncryptionImpl.java
@Test
    public void testCleanupSystemEncryptionTypes()
    {
        //add encryption type
        m_SUT.addEncryptionTypeForSystem(123, EncryptType.AES_ECDH_ECDSA);
        
        assertThat(m_SUT.getEncryptType(123), is(EncryptType.AES_ECDH_ECDSA));
        
        when(m_ChannelLookup.getChannels(123)).thenReturn(new ArrayList<RemoteChannel>());
        
        m_SUT.cleanupSystemEncryptionTypes();
        
        assertThat(m_SUT.getEncryptType(123), nullValue());
    }
/**
     * Verify that if a system encryption entry contains a system id 
     * that is no longer known by the remote channel lookup then it is 
     * removed from the list of known system encryption types.
     */
Verify that if a system encryption entry contains a system id
that is no longer known by the remote channel lookup then it is
removed from the list of known system encryption types.
Verify that if a system encryption entry contains a system id that is no longer known by the remote channel lookup then it is removed from the list of known system encryption types .
@Test
    public void testCleanupSystemEncryptionTypes()
    {
        m_SUT.addEncryptionTypeForSystem(123, EncryptType.AES_ECDH_ECDSA);
        assertThat(m_SUT.getEncryptType(123), is(EncryptType.AES_ECDH_ECDSA));
        when(m_ChannelLookup.getChannels(123)).thenReturn(new ArrayList<RemoteChannel>());
        m_SUT.cleanupSystemEncryptionTypes();
        assertThat(m_SUT.getEncryptType(123), nullValue());
    }
@ Test public void testCleanupSystemEncryptionTypes ( ) { m_SUT . addEncryptionTypeForSystem ( 123 , EncryptType . AES_ECDH_ECDSA ) ; assertThat ( m_SUT . getEncryptType ( 123 ) , is ( EncryptType . AES_ECDH_ECDSA ) ) ; when ( m_ChannelLookup . getChannels ( 123 ) ) . thenReturn ( new ArrayList < RemoteChannel > ( ) ) ; m_SUT . cleanupSystemEncryptionTypes ( ) ; assertThat ( m_SUT . getEncryptType ( 123 ) , nullValue ( ) ) ; }
Verify that if a system encryption entry contains a system id
 that is no longer known by the remote channel lookup then it is
 removed from the list of known system encryption types.
Verify that if a system encryption entry contains a system id that is no longer known by the remote channel lookup then it is removed from the list of known system encryption types .
//add encryption type