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

    addServiceAndVersion();
    parameters.addParameterShell(GET_OBSERVATION_BY_ID_OBSERVATION_ID_PARAMETER, OBSERVATION_ID_1);
    String getObservationById = builder.buildGetObservationByIDRequest(parameters);
    GetObservationByIdType getObservationByIdType = GetObservationByIdDocument.Factory.parse(getObservationById)
            .getGetObservationById();
    assertThat(getObservationByIdType.getService(), is(sosService));
    assertThat(getObservationByIdType.getVersion(), is(sosVersion));
    assertThat(getObservationByIdType.getObservationArray().length, is(1));
    assertThat(getObservationByIdType.getObservationArray(0), is(OBSERVATION_ID_1));
    parameters.removeParameterShell(GET_OBSERVATION_BY_ID_OBSERVATION_ID_PARAMETER);
    parameters
            .addParameterShell(GET_OBSERVATION_BY_ID_OBSERVATION_ID_PARAMETER, OBSERVATION_ID_1, OBSERVATION_ID_2);
    getObservationById = builder.buildGetObservationByIDRequest(parameters);
    getObservationByIdType = GetObservationByIdDocument.Factory.parse(getObservationById).getGetObservationById();
    assertThat(getObservationByIdType.getService(), is(sosService));
    assertThat(getObservationByIdType.getVersion(), is(sosVersion));
    assertThat(getObservationByIdType.getObservationArray().length, is(2));
    assertThat(getObservationByIdType.getObservationArray(), hasItemInArray(OBSERVATION_ID_1));
    assertThat(getObservationByIdType.getObservationArray(), hasItemInArray(OBSERVATION_ID_2));
}