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

    createParamConWithMandatoryInsertSensorValues();
    parameters.removeParameterShell(REGISTER_SENSOR_ML_DOC_PARAMETER);
    parameters.addParameterShell(REGISTER_SENSOR_ML_DOC_PARAMETER, "INVALID");
    try {
        builder.buildRegisterSensorRequest(parameters);
    } catch (final Exception e) {
        assertThat(e,is(instanceOf(OXFException.class)));
        assertThat(e.getCause(),is(instanceOf(XmlException.class)));
        assertThat(e.getMessage(),is("Error while parsing MANDATORY parameter 'procedure description'!"));
    }
}