mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/TestRemoteSettingsImpl.java
@Test
    public void testActivateWithProp()
    {
        //mock prop from framework
        when(m_Context.getProperty(RemoteSettingsImpl.ENCRYPTION_FRAMEWORK_PROPERTY)).
            thenReturn(EncryptionMode.AES_ECDH_ECDSA.toString());
        m_Props = new HashMap<String, Object>();
        m_SUT.activate(m_Context, m_Props);
        
        //verify
        assertThat(m_SUT.getEncryptionMode(), is(EncryptionMode.AES_ECDH_ECDSA));
    }
/**
     * Test activation will read property from framework and translate it to the appropriate encryption type. 
     */
Test activation will read property from framework and translate it to the appropriate encryption type.
Test activation will read property from framework and translate it to the appropriate encryption type .
@Test
    public void testActivateWithProp()
    {
        when(m_Context.getProperty(RemoteSettingsImpl.ENCRYPTION_FRAMEWORK_PROPERTY)).
            thenReturn(EncryptionMode.AES_ECDH_ECDSA.toString());
        m_Props = new HashMap<String, Object>();
        m_SUT.activate(m_Context, m_Props);
        assertThat(m_SUT.getEncryptionMode(), is(EncryptionMode.AES_ECDH_ECDSA));
    }
@ Test public void testActivateWithProp ( ) { when ( m_Context . getProperty ( RemoteSettingsImpl . ENCRYPTION_FRAMEWORK_PROPERTY ) ) . thenReturn ( EncryptionMode . AES_ECDH_ECDSA . toString ( ) ) ; m_Props = new HashMap < String , Object > ( ) ; m_SUT . activate ( m_Context , m_Props ) ; assertThat ( m_SUT . getEncryptionMode ( ) , is ( EncryptionMode . AES_ECDH_ECDSA ) ) ; }
Test activation will read property from framework and translate it to the appropriate encryption type.
Test activation will read property from framework and translate it to the appropriate encryption type .
//mock prop from framework //verify