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

    addServiceAndVersion();
    addObservationValues();
    CategoryParameter parameter = new CategoryParameter("test-name", "test-category");
    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"));
    ReferenceType xb = (ReferenceType) parameterArray[0].getNamedValue().getValue();
    assertThat(xb.getHref(), is("test-category"));
}