mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/util/TestRemotePropertyConverter.java
@Test
    public final void testComplexTypesMapToMap_ObservationNative() throws Exception
    {
        // mock
        List<ComplexTypesMapEntry> props = new ArrayList<ComplexTypesMapEntry>();
        ComplexTypesMapEntry mapType = ComplexTypesMapEntry.newBuilder().
            setKey("Observation").
            setObservationNative(TerraHarvestMessageHelper.getProtoObs()).build();
        props.add(mapType);
        
        Observation observation = new Observation().withAssetUuid(UUID.randomUUID()).withSensorId("test sensor");
        when(m_Converter.convertToJaxb(Mockito.any(ObservationGen.Observation.class))).
            thenReturn(observation);

        Map<String, Object> map = m_SUT.complexTypesMapToMap(props);
        assertThat(map, rawMapHasEntry("Observation", observation));
    }
/**
     * Test converting a complex types map that contains an protocol buffer observation to a map with a JAXB 
     * observation.
     */
Test converting a complex types map that contains an protocol buffer observation to a map with a JAXB
observation.
Test converting a complex types map that contains an protocol buffer observation to a map with a JAXB observation .
@Test
    public final void testComplexTypesMapToMap_ObservationNative() throws Exception
    {
        List<ComplexTypesMapEntry> props = new ArrayList<ComplexTypesMapEntry>();
        ComplexTypesMapEntry mapType = ComplexTypesMapEntry.newBuilder().
            setKey("Observation").
            setObservationNative(TerraHarvestMessageHelper.getProtoObs()).build();
        props.add(mapType);
        Observation observation = new Observation().withAssetUuid(UUID.randomUUID()).withSensorId("test sensor");
        when(m_Converter.convertToJaxb(Mockito.any(ObservationGen.Observation.class))).
            thenReturn(observation);
        Map<String, Object> map = m_SUT.complexTypesMapToMap(props);
        assertThat(map, rawMapHasEntry("Observation", observation));
    }
@ Test public final void testComplexTypesMapToMap_ObservationNative ( ) throws Exception { List < ComplexTypesMapEntry > props = new ArrayList < ComplexTypesMapEntry > ( ) ; ComplexTypesMapEntry mapType = ComplexTypesMapEntry . newBuilder ( ) . setKey ( "Observation" ) . setObservationNative ( TerraHarvestMessageHelper . getProtoObs ( ) ) . build ( ) ; props . add ( mapType ) ; Observation observation = new Observation ( ) . withAssetUuid ( UUID . randomUUID ( ) ) . withSensorId ( "test sensor" ) ; when ( m_Converter . convertToJaxb ( Mockito . any ( ObservationGen . Observation . class ) ) ) . thenReturn ( observation ) ; Map < String , Object > map = m_SUT . complexTypesMapToMap ( props ) ; assertThat ( map , rawMapHasEntry ( "Observation" , observation ) ) ; }
Test converting a complex types map that contains an protocol buffer observation to a map with a JAXB
 observation.
Test converting a complex types map that contains an protocol buffer observation to a map with a JAXB observation .
// mock