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

    addServiceAndVersion();
    addObservationValues();
    CountParameter parameter = new CountParameter("test-name", 42);
    parameters.addParameterShell(new ParameterShell(OmParameter.PARAMETER, parameter));
    final String insertObservation = builder.buildInsertObservationRequest(parameters);
    NamedValuePropertyType[] parameterArray = InsertObservationDocument.Factory.parse(insertObservation)
            .getInsertObservation().getObservationArray(0).getOMObservation().getParameterArray();
    assertThat(parameterArray.length, is(1));
    assertThat(parameterArray[0].getNamedValue().getName().getHref(), is("test-name"));
    XmlInteger xb = (XmlInteger) parameterArray[0].getNamedValue().getValue();
    assertThat(xb.getBigIntegerValue().intValueExact(), is(42));
}