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

    addServiceAndVersion();
    addObservationValues();
    removeObservationTypeAndMeasurementResult();
    parameters.addParameterShell(INSERT_OBSERVATION_TYPE, INSERT_OBSERVATION_TYPE_COUNT);
    parameters.addParameterShell(INSERT_OBSERVATION_VALUE_PARAMETER,count );
    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_COUNT_OBSERVATION));
    final XmlInteger result = XmlInteger.Factory.parse(observation.getResult().xmlText());
    assertThat(result.getBigIntegerValue().intValue(),is(count));
}