@Test
public void ignoresInvalidTimeZone() throws Exception {

    JsonAdapter<TimeZone> adapter = timeZoneAdapter(TimeZone.class);
    assertThat(adapter.fromJson("{\"name\":\"hey\",\"utc_offset\":null}")).isNull();
    assertThat(adapter.fromJson("{\"name\":null,\"utc_offset\":null}")).isNull();
    assertThat(adapter.fromJson("{\"latitude\":null,\"longitude\":24.45}")).isNull();
    assertThat(adapter.fromJson("{}")).isNull();
}