@Test
public void buildInsertObservation_should_add_single_truth_observation() throws OXFException, XmlException{

    addServiceAndVersion();
    addObservationValues();
    removeObservationTypeAndMeasurementResult();
    parameters.addParameterShell(INSERT_OBSERVATION_TYPE, INSERT_OBSERVATION_TYPE_TRUTH);
    parameters.addParameterShell(INSERT_OBSERVATION_VALUE_PARAMETER,Boolean.toString(truth));
    String insertObservation = builder.buildInsertObservationRequest(parameters);
    OMObservationType observation = InsertObservationDocument.Factory.parse(insertObservation)
            .getInsertObservation().getObservationArray(0).getOMObservation();
    assertThat(observation.getType().getHref(),is(XMLConstants.OGC_OM_2_0_OM_TRUTH_OBSERVATION));
    XmlBoolean result = XmlBoolean.Factory.parse(observation.getResult().xmlText());
    assertThat(result.getBooleanValue(),is(truth));
    parameters.removeParameterShell(INSERT_OBSERVATION_VALUE_PARAMETER);
    parameters.addParameterShell(INSERT_OBSERVATION_VALUE_PARAMETER,"someStringNotTrue");
    insertObservation = builder.buildInsertObservationRequest(parameters);
    observation = InsertObservationDocument.Factory.parse(insertObservation).getInsertObservation()
            .getObservationArray(0).getOMObservation();
    assertThat(observation.getType().getHref(),is(XMLConstants.OGC_OM_2_0_OM_TRUTH_OBSERVATION));
    result = XmlBoolean.Factory.parse(observation.getResult().xmlText());
    assertThat(result.getBooleanValue(),is(false));
}