@Test
public void testResolveSubjectsByIdOrName() throws Exception {

  when(subjectResolver.resolveSubject(isA(UUID.class))).thenReturn(Subject.builder().build());
  when(subjectResolver.resolveSubject(isA(String.class))).thenReturn(Subject.builder().build());
  List<String> acl = list(UUID.randomUUID().toString(), "name", UUID.randomUUID().toString());
  assertEquals(acl.size(), handler.resolveSubjects(acl).size());
  verify(subjectResolver, times(2)).resolveSubject(isA(UUID.class));
  verify(subjectResolver).resolveSubject("name");
}