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

    addServiceAndVersion();
    addObservationValues();
    removeObservationTypeAndMeasurementResult();
    parameters.addParameterShell(INSERT_OBSERVATION_TYPE, INSERT_OBSERVATION_TYPE_CATEGORY);
    parameters.addParameterShell(INSERT_OBSERVATION_VALUE_PARAMETER,category);
    final String insertObservation = builder.buildInsertObservationRequest(parameters);
    final OMObservationType observation = InsertObservationDocument.Factory.parse(
            insertObservation).getInsertObservation().getObservationArray(0).getOMObservation();
    assertThat(observation.getType().getHref(),is(OGC_OM_2_0_OM_CATEGORY_OBSERVATION));
    final ReferenceType result = ReferenceType.Factory.parse(observation.getResult().xmlText());
    assertThat(result.getHref(),is(category));
}