@@ -0,0 +1,1845 @@
+package de.philipphager.disclosure.api.adapters;%0A%0Aimport com.google.gson.JsonDeserializationContext;%0Aimport com.google.gson.JsonElement;%0Aimport com.google.gson.JsonPrimitive;%0Aimport com.google.gson.JsonSerializationContext;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.threeten.bp.OffsetDateTime;%0Aimport org.threeten.bp.ZoneOffset;%0Aimport org.threeten.bp.format.DateTimeParseException;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class OffsetDateTimeTypeAdapterShould %7B%0A  @Mock JsonSerializationContext serializationContext;%0A  @Mock JsonDeserializationContext deserializationContext;%0A  @InjectMocks OffsetDateTimeTypeAdapter adapter;%0A%0A  @Test public void serializeDateToJson() %7B%0A    OffsetDateTime testDate = OffsetDateTime.of(2016, 1, 1, 12, 0, 30, 0, ZoneOffset.UTC);%0A    String expectedDate = %222016-01-01T12:00:30Z%22;%0A%0A    JsonElement jsonDate = adapter.serialize(testDate, OffsetDateTime.class, serializationContext);%0A    assertThat(jsonDate.getAsString()).isEqualTo(expectedDate);%0A  %7D%0A%0A  @Test public void deserializeJsonToDate() %7B%0A    String testJson = %222016-01-01T01:30:15Z%22;%0A    JsonElement json = new JsonPrimitive(testJson);%0A%0A    OffsetDateTime expectedDate = OffsetDateTime.of(2016, 1, 1, 1, 30, 15, 0, ZoneOffset.UTC);%0A    OffsetDateTime date = adapter.deserialize(json, OffsetDateTime.class, deserializationContext);%0A%0A    assertThat(date).isEqualTo(expectedDate);%0A  %7D%0A%0A  @Test(expected = DateTimeParseException.class)%0A  public void throwErrorIfDateIsNotInIsoFormat() %7B%0A    String testJson = %222016-01-0101:30:15%22;%0A    JsonElement json = new JsonPrimitive(testJson);%0A%0A    adapter.deserialize(json, OffsetDateTime.class, deserializationContext);%0A  %7D%0A%7D%0A

Add tests for OffsetDateTimeTypeAdapter to test JSON conversion