GpsTracePoint implements JsonRenderable { @Nonnull public GpsTracePoint withTime(@Nonnull final DateTime time) { assert time != 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 testWithTime() { LOG.info("testWithTime"); Assert.assertTrue(y1.equals(x.withTime(y1).getTime())); Assert.assertNotNull(y.withTime(x1).getTime()); }