public static List<GsonEmail> parse(String json) {
    Gson gson = new Gson();
    return gson.fromJson(json, new TypeToken<List<GsonEmail>>() {
    });
  }
@Test
  public void parse() {
    List<GsonEmail> underTest = GsonEmail.parse(
      "[\n" +
        "  {\n" +
        "    \"email\": \"octocat@github.com\",\n" +
        "    \"verified\": true,\n" +
        "    \"primary\": true\n" +
        "  },\n" +
        "  {\n" +
        "    \"email\": \"support@github.com\",\n" +
        "    \"verified\": false,\n" +
        "    \"primary\": false\n" +
        "  }\n" +
        "]");
    assertThat(underTest).hasSize(2);

    assertThat(underTest.get(0).getEmail()).isEqualTo("octocat@github.com");
    assertThat(underTest.get(0).isVerified()).isTrue();
    assertThat(underTest.get(0).isPrimary()).isTrue();

    assertThat(underTest.get(1).getEmail()).isEqualTo("support@github.com");
    assertThat(underTest.get(1).isVerified()).isFalse();
    assertThat(underTest.get(1).isPrimary()).isFalse();
  }