@Test
public void testEquals() {

    new EqualsTester()
            .addEqualityGroup(new DoublePoint(0, Instant.parse("2015-01-01T00:00:00Z").toEpochMilli(), 10d),
                    new DoublePoint(0, Instant.parse("2015-01-01T00:00:00Z").toEpochMilli(), 10d))
            .addEqualityGroup(new DoublePoint(1, Instant.parse("2015-01-01T00:15:00Z").toEpochMilli(), 8d),
                    new DoublePoint(1, Instant.parse("2015-01-01T00:15:00Z").toEpochMilli(), 8d))
            .testEquals();
}