TAPoint implements Writable { @Override public String toString() { return String.format("%s{regionName=%s, startDate=%s, stopDate=%s, temporalBin=%s}", getClass().getSimpleName(), regionName, startDate, stopDate, temporalBin); } TAPoint();  TAPoint(String regionName, String startDate, String stopDate, L3TemporalBin temporalBin); static TAPoint read(DataInput in); String getRegionName(); String getStartDate(); String getStopDate(); TemporalBin getTemporalBin(); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override String toString();  }
@Test public void testToString() throws Exception { assertEquals("TAPoint{" + "regionName=Mediteranean, " + "startDate=2011-01-01, " + "stopDate=2011-01-02, " + "temporalBin=L3TemporalBin{index=-1, numObs=0, numPasses=0, featureValues=[1.2, 3.4]}" + "}", point.toString()); }