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

    addServiceAndVersion();
    addObservationValues();
    QuantityParameter parameter = new QuantityParameter("test-name", "test-uom", 52.0);
    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"));
    MeasureType xb = (MeasureType) parameterArray[0].getNamedValue().getValue();
    assertThat(xb.getUom(), is("test-uom"));
    assertThat(xb.getDoubleValue(), is(52.0));
}