mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/util/TestRemotePropertyConverter.java
@Test
    public final void testComplexTypesMapToMap_CommandResponseEventJavaMapBad() throws Exception
    {
        // mock
        List<ComplexTypesMapEntry> entries = new ArrayList<>();
        entries.add(ComplexTypesMapEntry.newBuilder().setKey(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE).
                setMulti(Multitype.newBuilder().setType(Type.BYTES).
                        setByteStringValue(ByteString.EMPTY).build()).build());
        
        try
        {
            m_SUT.complexTypesMapToMap(entries);
            fail("Expected exception");
        }
        catch (IllegalStateException e)
        {
            //expected because the event has parts of a command response, but not the actual enum type value
        }
    }
/**
     * Test creating a java map equivalent of a proto property map which was a command response event.
     * 
     * Verify exception because the command enum type is not available.
     */
Test creating a java map equivalent of a proto property map which was a command response event.

Verify exception because the command enum type is not available.
Test creating a java map equivalent of a proto property map which was a command response event . Verify exception because the command enum type is not available .
@Test
    public final void testComplexTypesMapToMap_CommandResponseEventJavaMapBad() throws Exception
    {
        List<ComplexTypesMapEntry> entries = new ArrayList<>();
        entries.add(ComplexTypesMapEntry.newBuilder().setKey(Asset.EVENT_PROP_ASSET_COMMAND_RESPONSE).
                setMulti(Multitype.newBuilder().setType(Type.BYTES).
                        setByteStringValue(ByteString.EMPTY).build()).build());
        try
        {
            m_SUT.complexTypesMapToMap(entries);
            fail("Expected exception");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public final void testComplexTypesMapToMap_CommandResponseEventJavaMapBad ( ) throws Exception { List < ComplexTypesMapEntry > entries = new ArrayList < > ( ) ; entries . add ( ComplexTypesMapEntry . newBuilder ( ) . setKey ( Asset . EVENT_PROP_ASSET_COMMAND_RESPONSE ) . setMulti ( Multitype . newBuilder ( ) . setType ( Type . BYTES ) . setByteStringValue ( ByteString . EMPTY ) . build ( ) ) . build ( ) ) ; try { m_SUT . complexTypesMapToMap ( entries ) ; fail ( "Expected exception" ) ; } catch ( IllegalStateException e ) { } }
Test creating a java map equivalent of a proto property map which was a command response event.
Test creating a java map equivalent of a proto property map which was a command response event .
// mock //expected because the event has parts of a command response, but not the actual enum type value