mil.dod.th.ose.shared/test/mil/dod/th/ose/shared/protoconverter/TestJaxbProtoObjectConverterImpl.java
@Test
    public void testConvertToProtoObservation() throws ObjectConverterException
    {
        //obs for comparison
        Observation obsToGoThereAndBack = createStatusObservation();
        
        //Convert the object to a protocol message.
        Message convertedMessage = m_SUT.convertToProto(obsToGoThereAndBack);

        //Convert the message to an object and cast it to the appropriate object type.
        Observation convertedObject = (Observation)m_SUT.convertToJaxb(convertedMessage);

        //Check that the converted message matches the the test obs created.
        JaxbUtil.assertEqualContent(obsToGoThereAndBack, convertedObject);
    }
/**
     * Verify the converters ability to go from a jaxb object to a proto message and back.
     * This tests ensures that nested types are properly handled and shared types. 
     */
Verify the converters ability to go from a jaxb object to a proto message and back.
This tests ensures that nested types are properly handled and shared types.
Verify the converters ability to go from a jaxb object to a proto message and back . This tests ensures that nested types are properly handled and shared types .
@Test
    public void testConvertToProtoObservation() throws ObjectConverterException
    {
        Observation obsToGoThereAndBack = createStatusObservation();
        Message convertedMessage = m_SUT.convertToProto(obsToGoThereAndBack);
        Observation convertedObject = (Observation)m_SUT.convertToJaxb(convertedMessage);
        JaxbUtil.assertEqualContent(obsToGoThereAndBack, convertedObject);
    }
@ Test public void testConvertToProtoObservation ( ) throws ObjectConverterException { Observation obsToGoThereAndBack = createStatusObservation ( ) ; Message convertedMessage = m_SUT . convertToProto ( obsToGoThereAndBack ) ; Observation convertedObject = ( Observation ) m_SUT . convertToJaxb ( convertedMessage ) ; JaxbUtil . assertEqualContent ( obsToGoThereAndBack , convertedObject ) ; }
Verify the converters ability to go from a jaxb object to a proto message and back.
Verify the converters ability to go from a jaxb object to a proto message and back .
//obs for comparison //Convert the object to a protocol message. //Convert the message to an object and cast it to the appropriate object type. //Check that the converted message matches the the test obs created.