@Test
public void testResolveOrganizationProvidedFetchesExistingOrganizationByName() throws Exception {

  Organization organization = Organization.builder().build();
  when(organizationResolver.resolveOrganization("organization")).thenReturn(organization);
  assertSame(organization, handler.resolveOrganization("organization", null));
  verify(organizationResolver).resolveOrganization("organization");
  verify(securityContext).checkReadPermission(organization);
}