RangeGeometries { public static <N extends Number & Comparable<? super N>> Point singleton(final N value) { checkNotNull(value); return Geometries.point(value.doubleValue(), 0.5d); } private  RangeGeometries(); static Point singleton(final N value); static Rectangle closed(final N lower, final N upper); static Rectangle closedOpen(final N lower, final N upper); static Rectangle openClosed(final N lower, final N upper); static Rectangle open(final N lower, final N upper); static Rectangle range(final Range<N> range);  }
@Test(expected=NullPointerException.class) public void testSingletonNull() { singleton(null); }
@Test public void testSingleton() { assertEquals(Geometries.point(42.0d, 0.5d), singleton(42L)); }