@Override
  public UserIdentity create(GsonUser user, @Nullable String email, @Nullable List<GsonTeam> teams) {
    UserIdentity.Builder builder = UserIdentity.builder()
      .setProviderId(user.getId())
      .setProviderLogin(user.getLogin())
      .setName(generateName(user))
      .setEmail(email);
    if (teams != null) {
      builder.setGroups(teams.stream()
        .map(GithubTeamConverter::toGroupName)
        .collect(Collectors.toSet()));
    }
    return builder.build();
  }
@Test
  public void no_email() {
    GsonUser gson = new GsonUser("ABCD", "octocat", "monalisa octocat", null);

    UserIdentity identity = underTest.create(gson, null, null);

    assertThat(identity.getProviderLogin()).isEqualTo("octocat");
    assertThat(identity.getName()).isEqualTo("monalisa octocat");
    assertThat(identity.getEmail()).isNull();
  }