test_class.declarator: expectedException = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedException = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedException
test_class.declarator: alternateKeyHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AlternateKeyHelper alternateKeyHelper;
test_class.type: AlternateKeyHelper
test_class.var_name: alternateKeyHelper
test_class.declarator: securityRoleFunctionHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SecurityRoleFunctionHelper securityRoleFunctionHelper;
test_class.type: SecurityRoleFunctionHelper
test_class.var_name: securityRoleFunctionHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SecurityRoleFunctionHelperTest.java
test_class.identifier: SecurityRoleFunctionHelperTest
test_case.body: @Test
      public void testValidateAndTrimSecurityRoleFunctionKeyMissingSecurityRoleFunctionKey()
      {
          // Specify the expected exception.
          expectedException.expect(IllegalArgumentException.class);
          expectedException.expectMessage("A security role to function mapping key must be specified.");
  
          // Call the method under test.
          securityRoleFunctionHelper.validateAndTrimSecurityRoleFunctionKey(null);
  
          // Verify the external calls.
          verifyNoMoreInteractions(alternateKeyHelper);
      }
test_case.class_method_signature: SecurityRoleFunctionHelperTest.testValidateAndTrimSecurityRoleFunctionKeyMissingSecurityRoleFunctionKey()
test_case.full_signature: @Test public void testValidateAndTrimSecurityRoleFunctionKeyMissingSecurityRoleFunctionKey()
test_case.identifier: testValidateAndTrimSecurityRoleFunctionKeyMissingSecurityRoleFunctionKey
test_case.invocations: expect expectMessage validateAndTrimSecurityRoleFunctionKey verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateAndTrimSecurityRoleFunctionKeyMissingSecurityRoleFunctionKey()
focal_class.declarator: alternateKeyHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private AlternateKeyHelper alternateKeyHelper;
focal_class.type: AlternateKeyHelper
focal_class.var_name: alternateKeyHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SecurityRoleFunctionHelper.java
focal_class.identifier: SecurityRoleFunctionHelper
focal_class.class_method_signature: SecurityRoleFunctionHelper.validateAndTrimSecurityRoleFunctionCreateRequest(SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.full_signature: public void validateAndTrimSecurityRoleFunctionCreateRequest(SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.identifier: validateAndTrimSecurityRoleFunctionCreateRequest
focal_class.modifiers: public
focal_class.parameters: (SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.return: void
focal_class.signature: void validateAndTrimSecurityRoleFunctionCreateRequest(SecurityRoleFunctionCreateRequest securityRoleFunctionCreateRequest)
focal_class.class_method_signature: SecurityRoleFunctionHelper.validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_class.full_signature: public void validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_class.identifier: validateAndTrimSecurityRoleFunctionKey
focal_class.modifiers: public
focal_class.parameters: (SecurityRoleFunctionKey securityRoleFunctionKey)
focal_class.return: void
focal_class.signature: void validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.body: public void validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
      {
          Assert.notNull(securityRoleFunctionKey, "A security role to function mapping key must be specified.");
          securityRoleFunctionKey
              .setSecurityRoleName(alternateKeyHelper.validateStringParameter("security role name", securityRoleFunctionKey.getSecurityRoleName()));
          securityRoleFunctionKey
              .setSecurityFunctionName(alternateKeyHelper.validateStringParameter("security function name", securityRoleFunctionKey.getSecurityFunctionName()));
      }
focal_method.class_method_signature: SecurityRoleFunctionHelper.validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.full_signature: public void validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.identifier: validateAndTrimSecurityRoleFunctionKey
focal_method.invocations: notNull setSecurityRoleName validateStringParameter getSecurityRoleName setSecurityFunctionName validateStringParameter getSecurityFunctionName
focal_method.modifiers: public
focal_method.parameters: (SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.return: void
focal_method.signature: void validateAndTrimSecurityRoleFunctionKey(SecurityRoleFunctionKey securityRoleFunctionKey)