@Test
public void testHasReadPermissionForOriginReturnsFalseOnNoAccess() throws Exception {

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