@Test
public void shouldReturnTrueOnlyIfOmParameterIsSet() {

    OmParameter[] omParameters = {new BooleanParameter("test", true)};
    InsertObservationParameters parameters =
            new InsertObservationParameters(observationParameters, offerings, omParameters);
    Assert.assertThat(parameters.isSetOmParameter(), CoreMatchers.is(true));
    parameters = new InsertObservationParameters(observationParameters, offerings);
    Assert.assertThat(parameters.isSetOmParameter(), CoreMatchers.is(false));
    parameters = new InsertObservationParameters(observationParameters, offerings, new OmParameter[0]);
    Assert.assertThat(parameters.isSetOmParameter(), CoreMatchers.is(false));
}