mil.dod.th.ose.core.integration/src/mil/dod/th/ose/core/integration/TestJaxbConverter.java
public final void testConvertingObservation() throws IllegalArgumentException, PersistenceFailedException, 
        ValidationFailedException, ObjectConverterException
    {
        final Validator validator = ServiceUtils.getService(m_Context, Validator.class);
        final JaxbProtoObjectConverter converter = ServiceUtils.getService(m_Context, JaxbProtoObjectConverter.class);
        Observation obs = createStatusObservation();
        
        //verify valid
        validator.validate(obs);
        
        //convert
        ObservationGen.Observation obsGen = (ObservationGen.Observation)converter.convertToProto(obs);
        Observation obsThatWasConverted = (Observation)converter.convertToJaxb(obsGen);
        
        //verify valid
        validator.validate(obsThatWasConverted);
        
        //verify equal content
        JaxbUtil.assertEqualContent(obs, obsThatWasConverted);
    }
/**
     * Verify that an observation can be created using jaxb converted to a proto message and back without losing its 
     * integrity.
     */
Verify that an observation can be created using jaxb converted to a proto message and back without losing its
integrity.
Verify that an observation can be created using jaxb converted to a proto message and back without losing its integrity .
public final void testConvertingObservation() throws IllegalArgumentException, PersistenceFailedException, 
        ValidationFailedException, ObjectConverterException
    {
        final Validator validator = ServiceUtils.getService(m_Context, Validator.class);
        final JaxbProtoObjectConverter converter = ServiceUtils.getService(m_Context, JaxbProtoObjectConverter.class);
        Observation obs = createStatusObservation();
        validator.validate(obs);
        ObservationGen.Observation obsGen = (ObservationGen.Observation)converter.convertToProto(obs);
        Observation obsThatWasConverted = (Observation)converter.convertToJaxb(obsGen);
        validator.validate(obsThatWasConverted);
        JaxbUtil.assertEqualContent(obs, obsThatWasConverted);
    }
public final void testConvertingObservation ( ) throws IllegalArgumentException , PersistenceFailedException , ValidationFailedException , ObjectConverterException { final Validator validator = ServiceUtils . getService ( m_Context , Validator . class ) ; final JaxbProtoObjectConverter converter = ServiceUtils . getService ( m_Context , JaxbProtoObjectConverter . class ) ; Observation obs = createStatusObservation ( ) ; validator . validate ( obs ) ; ObservationGen . Observation obsGen = ( ObservationGen . Observation ) converter . convertToProto ( obs ) ; Observation obsThatWasConverted = ( Observation ) converter . convertToJaxb ( obsGen ) ; validator . validate ( obsThatWasConverted ) ; JaxbUtil . assertEqualContent ( obs , obsThatWasConverted ) ; }
Verify that an observation can be created using jaxb converted to a proto message and back without losing its
 integrity.
Verify that an observation can be created using jaxb converted to a proto message and back without losing its integrity .
//verify valid //convert //verify valid //verify equal content