GpsTracePoint implements JsonRenderable { @Nonnull public GpsTracePoint withPosition(@Nonnull final GeoPoint position) { assert position != null; return new GpsTracePoint(time, position); } GpsTracePoint(
            @Nonnull final DateTime time,
            @Nonnull final GeoPoint position); @SuppressWarnings("ConstantConditions") @Deprecated private  GpsTracePoint(); @Nonnull DateTime getTime(); @Nonnull GeoPoint getPosition(); @Nonnull GpsTracePoint withTime(@Nonnull final DateTime time); @Nonnull GpsTracePoint withPosition(@Nonnull final GeoPoint position); boolean canEqual(@Nonnull final Object obj); @Override boolean equals(@Nullable final Object obj); @Override int hashCode(); @Override String toJson(); @Override String toString();  }
@Test public void testWithPosition() { LOG.info("testWithPosition"); Assert.assertTrue(y2.equals(x.withPosition(y2).getPosition())); Assert.assertNotNull(y.withPosition(x2).getPosition()); }