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

    createParamConWithMandatoryInsertSensorValues();
    parameters.addParameterShell(REGISTER_SENSOR_OBSERVED_PROPERTY_PARAMETER,
            TEST_OBSERVABLE_PROPERTY_1);
    final String registerSensor = builder.buildRegisterSensorRequest(parameters);
    final InsertSensorType insertSensorType = InsertSensorDocument.Factory.parse(registerSensor).getInsertSensor();
    assertThat(insertSensorType.getVersion(),is(sosVersion));
    assertThat(insertSensorType.getService(),is(sosService));
}