@Test
public void testToJsonRegularCases() throws ValidationFailException {

    LOG.info("testToJsonRegularCases");
    ConstructorChecker.validateMethod(Json.class, "toJson", INT_JSON);
    final Integer i = 1;
    final String x0 = Json.toJson(i);
    LOG.info("Json Integer: " + x0);
    Assert.assertEquals(INT_JSON, x0);
    final GeoRectangle a = new GeoRectangle(new GeoPoint(1.0, 2.0), new GeoPoint(3.0, 4.0));
    final String x1 = Json.toJson(a);
    LOG.info("Json GeoRectangle: " + x1);
    Assert.assertEquals(RECT_JSON, x1);
    final Uid<Integer> uid = new Uid<>("1-2-3-4-5");
    final String x2 = Json.toJson(uid);
    LOG.info("Json Uid: " + x2);
    Assert.assertEquals(
            "{\"uuid\":\"00000001-0002-0003-0004-000000000005\"}",
            x2);
    final Date d = new Date(Date.UTC(112, 4, 27, 11, 29, 10));
    final String x3 = Json.toJson(d);
    LOG.info("Json Date: " + x3);
    Assert.assertEquals(
            "\"2012-05-27T11:29:10.000+00:00\"",
            x3);
    // TODO: UTCTime parsing errors
    final DateTime e =
            new DateTime(2012, 4, 27, 11, 29, 10, DateTimeZone.forTimeZone(TimeZone.getTimeZone("Europe/Amsterdam")));
    final String x4 = Json.toJson(e);
    LOG.info("Json DateTime: " + x4);
    Assert.assertEquals(
            "\"2012-04-27T11:29:10.000+0200\"",
            x4);
}