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

    createParamConWithMandatoryInsertSensorValues();
    /*
     *     MULTIPLE OBSERVED PROPERTIES
     */
    parameters.addParameterShell(REGISTER_SENSOR_OBSERVED_PROPERTY_PARAMETER,
            TEST_OBSERVABLE_PROPERTY_1,
            TEST_OBSERVABLE_PROPERTY_2);
    String registerSensor = builder.buildRegisterSensorRequest(parameters);
    InsertSensorType insertSensorType = InsertSensorDocument.Factory.parse(registerSensor).getInsertSensor();
    assertThat(insertSensorType.getObservablePropertyArray().length, is(2));
    assertThat(insertSensorType.getObservablePropertyArray(),hasItemInArray(TEST_OBSERVABLE_PROPERTY_1));
    assertThat(insertSensorType.getObservablePropertyArray(),hasItemInArray(TEST_OBSERVABLE_PROPERTY_2));
    /*
     * SINGLE OBSERVED PROPERTY
     */
    parameters.removeParameterShell(REGISTER_SENSOR_OBSERVED_PROPERTY_PARAMETER);
    parameters.addParameterShell(REGISTER_SENSOR_OBSERVED_PROPERTY_PARAMETER,
            TEST_OBSERVABLE_PROPERTY_1);
    registerSensor = builder.buildRegisterSensorRequest(parameters);
    insertSensorType = InsertSensorDocument.Factory.parse(registerSensor).getInsertSensor();
    assertThat(insertSensorType.getObservablePropertyArray().length, is(1));
    assertThat(insertSensorType.getObservablePropertyArray(),hasItemInArray(TEST_OBSERVABLE_PROPERTY_1));
}