Пример #1
0
  @Test
  public void testDeserializesId() {
    IdTypeAdapter typeAdapter = new IdTypeAdapter();

    Id id = typeAdapter.deserialize(new JsonPrimitive("foo"), Id.class, null);

    assertThat(id).isEqualTo(new Id("foo"));
  }