NamespaceIamRoleAuthorizationRestController extends HerdBaseController { @RequestMapping(value = "/namespaceIamRoleAuthorizations", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_NAMESPACE_IAM_ROLE_AUTHORIZATIONS_ALL_GET) public NamespaceIamRoleAuthorizations getNamespaceIamRoleAuthorizations() { return namespaceIamRoleAuthorizationService.getNamespaceIamRoleAuthorizations(); }  @RequestMapping(value = "/namespaceIamRoleAuthorizations", method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_NAMESPACE_IAM_ROLE_AUTHORIZATIONS_POST) NamespaceIamRoleAuthorization createNamespaceIamRoleAuthorization(@RequestBody NamespaceIamRoleAuthorizationCreateRequest request); @RequestMapping(value = "/namespaceIamRoleAuthorizations/namespaces/{namespace}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_NAMESPACE_IAM_ROLE_AUTHORIZATIONS_GET) NamespaceIamRoleAuthorization getNamespaceIamRoleAuthorization(@PathVariable("namespace") String namespace); @RequestMapping(value = "/namespaceIamRoleAuthorizations", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_NAMESPACE_IAM_ROLE_AUTHORIZATIONS_ALL_GET) NamespaceIamRoleAuthorizations getNamespaceIamRoleAuthorizations(); @RequestMapping(value = "/namespaceIamRoleAuthorizations/namespaces/{namespace}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_NAMESPACE_IAM_ROLE_AUTHORIZATIONS_PUT) NamespaceIamRoleAuthorization updateNamespaceIamRoleAuthorization(@PathVariable("namespace") String namespace,
        @RequestBody NamespaceIamRoleAuthorizationUpdateRequest request); @RequestMapping(value = "/namespaceIamRoleAuthorizations/namespaces/{namespace}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_NAMESPACE_IAM_ROLE_AUTHORIZATIONS_DELETE) NamespaceIamRoleAuthorization deleteNamespaceIamRoleAuthorization(@PathVariable("namespace") String namespace);  }
@Test public void getNamespaceIamRoleAuthorizationsAssertCallsService() { NamespaceIamRoleAuthorizations expectedResult = new NamespaceIamRoleAuthorizations(); when(namespaceIamRoleAuthorizationService.getNamespaceIamRoleAuthorizations()).thenReturn(expectedResult); NamespaceIamRoleAuthorizations actualResult = namespaceIamRoleAuthorizationRestController.getNamespaceIamRoleAuthorizations(); verify(namespaceIamRoleAuthorizationService).getNamespaceIamRoleAuthorizations(); verifyNoMoreInteractions(namespaceIamRoleAuthorizationService); assertEquals(expectedResult, actualResult); }