@Test
public void testCreateReferenceObservation_sobolPoint() {

    final SamplingPoint samplingPoint = new SamplingPoint();
    samplingPoint.setIndex(77845);
    samplingPoint.setDatasetName("77845");
    samplingPoint.setReferenceLon(22.2);
    samplingPoint.setReferenceLat(33.3);
    samplingPoint.setReferenceTime(776636483L);
    samplingPoint.setInsituDatasetId(InsituDatasetId.dummy_diurnal_variability);
    final DataFile datafile = new DataFile();
    final ReferenceObservation referenceObservation = MatchupGenerator.createReferenceObservation("Sobol", samplingPoint, datafile);
    assertNotNull(referenceObservation);
    assertEquals("77845", referenceObservation.getName());
    assertEquals("Sobol", referenceObservation.getSensor());
    final PGgeometry location = referenceObservation.getLocation();
    final PGgeometry point = referenceObservation.getPoint();
    assertSame(location, point);
    final Point locationPoint = location.getGeometry().getPoint(0);
    assertEquals(22.2, locationPoint.getX(), 1e-8);
    assertEquals(33.3, locationPoint.getY(), 1e-8);
    assertEquals(776636483L, referenceObservation.getTime().getTime());
    assertEquals(0.0, referenceObservation.getTimeRadius(), 1e-8);
    assertSame(datafile, referenceObservation.getDatafile());
    assertEquals(0, referenceObservation.getRecordNo());
    assertEquals(InsituDatasetId.dummy_diurnal_variability.getValue(), referenceObservation.getDataset());
    assertEquals(Constants.MATCHUP_REFERENCE_FLAG_UNDEFINED, referenceObservation.getReferenceFlag());
}