### Question:
InsertObservation { public boolean isSetAltitudeValue() { return featureOfInterest != null && featureOfInterest.getPosition().getAltitude() != Position.VALUE_NOT_SET; } InsertObservation(final Sensor sensor,
			final FeatureOfInterest foi,
			final Object value,
			final Timestamp timeStamp,
			final UnitOfMeasurement uom,
			final ObservedProperty obsProp,
			final Offering off,
			final String mvType); String getSensorName(); String getSensorURI(); String getFeatureOfInterestName(); String getFeatureOfInterestURI(); String getObservedPropertyURI(); String getUnitOfMeasurementCode(); Object getResultValue(); Timestamp getTimeStamp(); String getEpsgCode(); double getLatitudeValue(); double getLongitudeValue(); double getAltitudeValue(); boolean isSetAltitudeValue(); ObservedProperty getObservedProperty(); Offering getOffering(); String getMeasuredValueType(); @Override String toString();  }### Answer:
@Test public void shouldReturnFalseIfAltitudeIsNotAvailable() { final FeatureOfInterest foi = new FeatureOfInterest(null, null, new Position(new double[] {0.0, 1.0, Double.NEGATIVE_INFINITY},new String[] {"deg","deg",null},4326)); InsertObservation insertObservation = new InsertObservation(null, foi, null, null, null, null, null, null); assertThat(insertObservation.isSetAltitudeValue(), is(false)); insertObservation = new InsertObservation(null, null, null, null, null, null, null, null); assertThat(insertObservation.isSetAltitudeValue(), is(false)); }