### Question:
GHPoint { public boolean isValid() { return !Double.isNaN(lat) && !Double.isNaN(lon); } GHPoint();  GHPoint(double lat, double lon); static GHPoint create(Point point); static GHPoint fromString(String str); static GHPoint fromStringLonLat(String str); static GHPoint fromJson(double[] xy); double getLon(); double getLat(); boolean isValid(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); String toShortString(); Double[] toGeoJson(); public double lat; public double lon; }### Answer:
@Test public void testIsValid() { GHPoint instance = new GHPoint(); assertFalse(instance.isValid()); instance.lat = 1; assertFalse(instance.isValid()); instance.lon = 1; assertTrue(instance.isValid()); }