@Test
public void testFetchOrigin() throws Exception {

  OriginEntity origin = new OriginEntity()
          .setId(UUID.randomUUID())
          .setOrganizationID(UUID.randomUUID());
  when(originResolver.apply(origin.getId())).thenReturn(origin);
  delegate.handle(new GetOriginByIdRequest().setId(origin.getId()));
  verify(originResolver).apply(origin.getId());
  verify(originResponseConverter).apply(origin);
  verify(securityContext).checkPermission(TiFunctionConstants.viewThreatIntelOrigin);
  verify(securityContext).checkReadPermission(origin);
}