@Test
public void shouldAlwaysReturnEmptyArrayOrContentForGetOmParameter() {

    InsertObservationParameters iop1 = new InsertObservationParameters(observationParameters, offerings, null);
    InsertObservationParameters iop2 = new InsertObservationParameters(
            observationParameters, offerings, new OmParameter[0]);
    final BooleanParameter bp = new BooleanParameter("test-name", true);
    InsertObservationParameters iop3 = new InsertObservationParameters(
            observationParameters, offerings, bp);
    Assert.assertThat(iop1.getOmParameter(), CoreMatchers.notNullValue());
    Assert.assertThat(iop1.getOmParameter().length, CoreMatchers.is(0));
    Assert.assertThat(iop2.getOmParameter(), CoreMatchers.notNullValue());
    Assert.assertThat(iop2.getOmParameter().length, CoreMatchers.is(0));
    Assert.assertThat(iop3.getOmParameter(), CoreMatchers.notNullValue());
    Assert.assertThat(iop3.getOmParameter().length, CoreMatchers.is(1));
    Assert.assertThat(iop3.getOmParameter()[0], CoreMatchers.is(bp));
}