@Test
public void synchronizeTeamsShouldReturnUserWhenTeamsClaimIsNotAList() {

    when(configMock.getProperty(eq(Config.AlpineKey.OIDC_TEAMS_CLAIM)))
            .thenReturn("teams");
    final OidcUserInfo userInfo = new OidcUserInfo();
    userInfo.setClaim("teams", "not-a-list");
    final OidcUser oidcUser = new OidcUser();
    final OidcAuthenticationService authService = new OidcAuthenticationService(configMock, oidcConfigurationMock, ACCESS_TOKEN);
    assertThat(authService.synchronizeTeams(null, oidcUser, userInfo)).isEqualTo(oidcUser);
}