ManageController { @RequestMapping(method = RequestMethod.GET, value = "/internal/identityProviders/scoped") public List<EntityMetaData> identityProvidersScoped() { return policyIdpAccessEnforcer.filterIdentityProviders(manage.identityProviders()); } @Autowired  ManageController(Manage manage); @RequestMapping(method = RequestMethod.GET, value = "/internal/serviceProviders") List<EntityMetaData> serviceProviders(); @RequestMapping(method = RequestMethod.GET, value = "/internal/identityProviders") List<EntityMetaData> identityProviders(); @RequestMapping(method = RequestMethod.GET, value = "/internal/identityProviders/scoped") List<EntityMetaData> identityProvidersScoped();  }
@Test public void testIdentityProvidersScoped() throws Exception { setupSecurityContext(Collections.emptySet(), Collections.emptySet()); assertEquals(0, subject.identityProvidersScoped().size()); }