test_class.declarator: securityRoleFunctionRestController
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SecurityRoleFunctionRestController securityRoleFunctionRestController;
test_class.type: SecurityRoleFunctionRestController
test_class.var_name: securityRoleFunctionRestController
test_class.declarator: securityRoleFunctionService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SecurityRoleFunctionService securityRoleFunctionService;
test_class.type: SecurityRoleFunctionService
test_class.var_name: securityRoleFunctionService
test_class.file: herd-code/herd-rest/src/test/java/org/finra/herd/rest/SecurityRoleFunctionRestControllerTest.java
test_class.identifier: SecurityRoleFunctionRestControllerTest
test_case.body: @Test
      public void testGetSecurityRoleFunctionsBySecurityFunction()
      {
          // Create a security function key.
          SecurityFunctionKey securityFunctionKey = new SecurityFunctionKey(SECURITY_FUNCTION);
  
          // Create a list of security role to function mapping keys.
          SecurityRoleFunctionKeys securityRoleFunctionKeys =
              new SecurityRoleFunctionKeys(Collections.singletonList(new SecurityRoleFunctionKey(SECURITY_ROLE, SECURITY_FUNCTION)));
  
          // Mock the external calls.
          when(securityRoleFunctionService.getSecurityRoleFunctionsBySecurityFunction(securityFunctionKey)).thenReturn(securityRoleFunctionKeys);
  
          // Call the method under test.
          SecurityRoleFunctionKeys result = securityRoleFunctionRestController.getSecurityRoleFunctionsBySecurityFunction(SECURITY_FUNCTION);
  
          // Validate the response.
          assertEquals(securityRoleFunctionKeys, result);
  
          // Verify the external calls.
          verify(securityRoleFunctionService).getSecurityRoleFunctionsBySecurityFunction(securityFunctionKey);
          verifyNoMoreInteractions(securityRoleFunctionService);
      }
test_case.class_method_signature: SecurityRoleFunctionRestControllerTest.testGetSecurityRoleFunctionsBySecurityFunction()
test_case.full_signature: @Test public void testGetSecurityRoleFunctionsBySecurityFunction()
test_case.identifier: testGetSecurityRoleFunctionsBySecurityFunction
test_case.invocations: singletonList thenReturn when getSecurityRoleFunctionsBySecurityFunction getSecurityRoleFunctionsBySecurityFunction assertEquals getSecurityRoleFunctionsBySecurityFunction verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSecurityRoleFunctionsBySecurityFunction()
focal_class.declarator: SECURITY_ROLE_FUNCTIONS_URI_PREFIX = "/securityRoleFunctions"
focal_class.modifier: private static final
focal_class.original_string: private static final String SECURITY_ROLE_FUNCTIONS_URI_PREFIX = "/securityRoleFunctions";
focal_class.type: String
focal_class.var_name: SECURITY_ROLE_FUNCTIONS_URI_PREFIX
focal_class.declarator: securityRoleFunctionService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SecurityRoleFunctionService securityRoleFunctionService;
focal_class.type: SecurityRoleFunctionService
focal_class.var_name: securityRoleFunctionService
focal_class.file: herd-code/herd-rest/src/main/java/org/finra/herd/rest/SecurityRoleFunctionRestController.java
focal_class.identifier: SecurityRoleFunctionRestController
focal_class.class_method_signature: SecurityRoleFunctionRestController.createSecurityRoleFunction(@RequestBody SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_POST) public SecurityRoleFunction createSecurityRoleFunction(@RequestBody SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.identifier: createSecurityRoleFunction
focal_class.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX, method = RequestMethod.POST, consumes = {"application/xml", "application/json"}) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_POST) public
focal_class.parameters: (@RequestBody SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.return: SecurityRoleFunction
focal_class.signature: SecurityRoleFunction createSecurityRoleFunction(@RequestBody SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.class_method_signature: SecurityRoleFunctionRestController.deleteSecurityRoleFunction(@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityRoleNames/{securityRoleName}/securityFunctionNames/{securityFunctionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_DELETE) public SecurityRoleFunction deleteSecurityRoleFunction(@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.identifier: deleteSecurityRoleFunction
focal_class.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityRoleNames/{securityRoleName}/securityFunctionNames/{securityFunctionName}", method = RequestMethod.DELETE) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_DELETE) public
focal_class.parameters: (@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.return: SecurityRoleFunction
focal_class.signature: SecurityRoleFunction deleteSecurityRoleFunction(@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.class_method_signature: SecurityRoleFunctionRestController.getSecurityRoleFunction(@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityRoleNames/{securityRoleName}/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_GET) public SecurityRoleFunction getSecurityRoleFunction(@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.identifier: getSecurityRoleFunction
focal_class.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityRoleNames/{securityRoleName}/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_GET) public
focal_class.parameters: (@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.return: SecurityRoleFunction
focal_class.signature: SecurityRoleFunction getSecurityRoleFunction(@PathVariable("securityRoleName") String securityRoleName,
          @PathVariable("securityFunctionName") String securityFunctionName)
focal_class.class_method_signature: SecurityRoleFunctionRestController.getSecurityRoleFunctions()
focal_class.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_ALL_GET) public SecurityRoleFunctionKeys getSecurityRoleFunctions()
focal_class.identifier: getSecurityRoleFunctions
focal_class.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX, method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_ALL_GET) public
focal_class.parameters: ()
focal_class.return: SecurityRoleFunctionKeys
focal_class.signature: SecurityRoleFunctionKeys getSecurityRoleFunctions()
focal_class.class_method_signature: SecurityRoleFunctionRestController.getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)
focal_class.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_FUNCTION_GET) public SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)
focal_class.identifier: getSecurityRoleFunctionsBySecurityFunction
focal_class.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_FUNCTION_GET) public
focal_class.parameters: (@PathVariable("securityFunctionName") String securityFunctionName)
focal_class.return: SecurityRoleFunctionKeys
focal_class.signature: SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)
focal_class.class_method_signature: SecurityRoleFunctionRestController.getSecurityRoleFunctionsBySecurityRole(@PathVariable("securityRoleName") String securityRoleName)
focal_class.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityRoleNames/{securityRoleName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_ROLE_GET) public SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityRole(@PathVariable("securityRoleName") String securityRoleName)
focal_class.identifier: getSecurityRoleFunctionsBySecurityRole
focal_class.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityRoleNames/{securityRoleName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_ROLE_GET) public
focal_class.parameters: (@PathVariable("securityRoleName") String securityRoleName)
focal_class.return: SecurityRoleFunctionKeys
focal_class.signature: SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityRole(@PathVariable("securityRoleName") String securityRoleName)
focal_method.body: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET)
      @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_FUNCTION_GET)
      public SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)
      {
          return securityRoleFunctionService.getSecurityRoleFunctionsBySecurityFunction(new SecurityFunctionKey(securityFunctionName));
      }
focal_method.class_method_signature: SecurityRoleFunctionRestController.getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)
focal_method.full_signature: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_FUNCTION_GET) public SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)
focal_method.identifier: getSecurityRoleFunctionsBySecurityFunction
focal_method.invocations: getSecurityRoleFunctionsBySecurityFunction
focal_method.modifiers: @RequestMapping(value = SECURITY_ROLE_FUNCTIONS_URI_PREFIX + "/securityFunctionNames/{securityFunctionName}", method = RequestMethod.GET) @Secured(SecurityFunctions.FN_SECURITY_ROLE_FUNCTIONS_BY_SECURITY_FUNCTION_GET) public
focal_method.parameters: (@PathVariable("securityFunctionName") String securityFunctionName)
focal_method.return: SecurityRoleFunctionKeys
focal_method.signature: SecurityRoleFunctionKeys getSecurityRoleFunctionsBySecurityFunction(@PathVariable("securityFunctionName") String securityFunctionName)