### Question:
InsertObservationParameters extends org.n52.oxf.sos.request.InsertObservationParameters { public OmParameter[] getOmParameter() { return omParameters.clone(); } InsertObservationParameters(
            final ObservationParameters observationParameters,
            final Collection<String> offerings);  InsertObservationParameters(
            final ObservationParameters observationParameters,
            final Collection<String> offerings,
            final OmParameter... omParameters); @Override boolean isValid(); boolean isSetOmParameter(); OmParameter[] getOmParameter();  }### Answer:
@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)); }