EuclideanIntegerPoint implements Clusterable<EuclideanIntegerPoint>, Serializable { public int[] getPoint() { return point; } EuclideanIntegerPoint(final int[] point); int[] getPoint(); double distanceFrom(final EuclideanIntegerPoint p); EuclideanIntegerPoint centroidOf(final Collection<EuclideanIntegerPoint> points); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testArrayIsReference() { int[] array = { -3, -2, -1, 0, 1 }; Assert.assertTrue(array == new EuclideanIntegerPoint(array).getPoint()); }