@Test
public void testHasReadPermissionForOriginReturnsTrueOnAccess() throws Exception {

  when(accessController.hasPermission(credentials, viewThreatIntelOrigin)).thenReturn(true);
  assertTrue(context.hasReadPermission(new OriginEntity()));
}