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

    addServiceAndVersion();
    addObservationValues();
    CountParameter p1 = new CountParameter("test-name", 42);
    QuantityParameter p2 = new QuantityParameter("p2-name", "p2-uom", 52.0);
    parameters.addParameterShell(new ParameterShell(OmParameter.PARAMETER, p1, p2));
    final String insertObservation = builder.buildInsertObservationRequest(parameters);
    NamedValuePropertyType[] parameterArray = InsertObservationDocument.Factory.parse(insertObservation)
            .getInsertObservation().getObservationArray(0).getOMObservation().getParameterArray();
    assertThat(parameterArray.length, is(2));
    assertThat(parameterArray[0].getNamedValue().getName().getHref(), is(p1.getName()));
    XmlInteger xb = (XmlInteger) parameterArray[0].getNamedValue().getValue();
    assertThat(xb.getBigIntegerValue().intValueExact(), is(p1.getValue().intValue()));
    assertThat(parameterArray[1].getNamedValue().getName().getHref(), is(p2.getName()));
    MeasureType xb2 = (MeasureType) parameterArray[1].getNamedValue().getValue();
    assertThat(xb2.getUom(), is(p2.getUOM()));
    assertThat(xb2.getDoubleValue(), is(p2.getValue()));
}