### Question:
ObservationFinder { static long getPointTime(SamplingPoint samplingPoint, boolean primarySensor) { if (primarySensor) { return samplingPoint.getTime(); } return samplingPoint.getReferenceTime(); } ObservationFinder(PersistenceManager persistenceManager); void findPrimarySensorObservations(List<SamplingPoint> samples, Parameter parameter); void findSecondarySensorObservations(List<SamplingPoint> samples, Parameter parameter); void findObservations(List<SamplingPoint> samples, Parameter parameter, boolean primarySensor);  }### Answer:
@Test public void testGetPointTime_primarySensor() { final SamplingPoint samplingPoint = new SamplingPoint(); samplingPoint.setTime(8756); samplingPoint.setReferenceTime(6654); assertEquals(8756, ObservationFinder.getPointTime(samplingPoint, true)); assertEquals(6654, ObservationFinder.getPointTime(samplingPoint, false)); }