### Question:
SamplingPoint { @JsonIgnore public boolean isInsitu() { return Double.isNaN(getRandom()); } SamplingPoint();  SamplingPoint(double lon, double lat, long time, double random);  SamplingPoint(int x, int y); @JsonIgnore boolean isInsitu(); double getLon(); void setLon(double lon); double getLat(); void setLat(double lat); long getTime(); void setTime(long time); double getRandom(); int getReference(); void setReference(int reference); int getReference2(); void setReference2(int reference2); int getX(); void setX(int x); int getY(); void setY(int y); int getIndex(); void setIndex(int index); void setInsituReference(int insituReference); int getInsituReference(); void setReferenceTime(long referenceTime); long getReferenceTime(); void setReferenceLat(double referenceLat); double getReferenceLat(); void setReferenceLon(double referenceLon); double getReferenceLon(); void setInsituDatasetId(InsituDatasetId insituDatasetId); InsituDatasetId getInsituDatasetId(); void setDatasetName(String datasetName); String getDatasetName(); void setReference2Time(long reference2Time); long getReference2Time();  }### Answer:
@Test public void testIsInsitu() { final SamplingPoint sobolPoint = new SamplingPoint(1, 2, 3, 56); assertFalse(sobolPoint.isInsitu()); final SamplingPoint insituPoint = new SamplingPoint(1, 2, 3, Double.NaN); assertTrue(insituPoint.isInsitu()); }