@Test public void serialization() throws IOException { assertThat(adapter.toJson(EPOCH)).isEqualTo("\"1970-01-01T00:00:00Z\""); assertThat(adapter.toJson(RECENT)).isEqualTo("\"2015-07-31T10:16:59Z\""); }
@ToJson public String toJson(Instant instant) { return instant.toString(); }
InstantAdapter { @ToJson public String toJson(Instant instant) { return instant.toString(); } }
InstantAdapter { @ToJson public String toJson(Instant instant) { return instant.toString(); }  }
InstantAdapter { @ToJson public String toJson(Instant instant) { return instant.toString(); }  @ToJson String toJson(Instant instant); @FromJson Instant fromJson(String value); }
InstantAdapter { @ToJson public String toJson(Instant instant) { return instant.toString(); }  @ToJson String toJson(Instant instant); @FromJson Instant fromJson(String value);  }