@Test
public void testResolveOrganizationFallbackToOriginFetchesExistingOrganization() throws Exception {

  OriginEntity origin = new OriginEntity().setOrganizationID(UUID.randomUUID());
  Organization organization = Organization.builder().build();
  when(organizationResolver.resolveOrganization(origin.getOrganizationID())).thenReturn(organization);
  assertSame(organization, handler.resolveOrganization(null, origin));
  verify(organizationResolver).resolveOrganization(origin.getOrganizationID());
}