@Test
public void testGetAuthorizedServiceNameMultipleServices() {

    PrincipalAuthority serviceAuthority = new PrincipalAuthority();
    List<String> authorizedServices = new ArrayList<>();
    authorizedServices.add("coretech.storage");
    authorizedServices.add("media.storage");
    assertNull(serviceAuthority.getAuthorizedServiceName(authorizedServices, null));
    assertNull(serviceAuthority.getAuthorizedServiceName(authorizedServices, "sports.storage"));
    assertEquals(serviceAuthority.getAuthorizedServiceName(authorizedServices, "coretech.storage"),
            "coretech.storage");
}