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: securityFunctionHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SecurityFunctionHelper securityFunctionHelper;
test_class.type: SecurityFunctionHelper
test_class.var_name: securityFunctionHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SecurityFunctionHelperTest.java
test_class.identifier: SecurityFunctionHelperTest
test_case.body: @Test
      public void testValidateAndTrimSecurityFunctionKeyMissingSecurityFunctionKey()
      {
          // Specify the expected exception.
          expectedException.expect(IllegalArgumentException.class);
          expectedException.expectMessage("A security function key must be specified.");
  
          // Call the method under test.
          securityFunctionHelper.validateAndTrimSecurityFunctionKey(null);
  
          // Verify the external calls.
          verifyNoMoreInteractions(alternateKeyHelper);
      }
test_case.class_method_signature: SecurityFunctionHelperTest.testValidateAndTrimSecurityFunctionKeyMissingSecurityFunctionKey()
test_case.full_signature: @Test public void testValidateAndTrimSecurityFunctionKeyMissingSecurityFunctionKey()
test_case.identifier: testValidateAndTrimSecurityFunctionKeyMissingSecurityFunctionKey
test_case.invocations: expect expectMessage validateAndTrimSecurityFunctionKey verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateAndTrimSecurityFunctionKeyMissingSecurityFunctionKey()
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/SecurityFunctionHelper.java
focal_class.identifier: SecurityFunctionHelper
focal_class.class_method_signature: SecurityFunctionHelper.validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)
focal_class.full_signature: public void validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)
focal_class.identifier: validateAndTrimSecurityFunctionKey
focal_class.modifiers: public
focal_class.parameters: (SecurityFunctionKey securityFunctionKey)
focal_class.return: void
focal_class.signature: void validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)
focal_method.body: public void validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)
      {
          Assert.notNull(securityFunctionKey, "A security function key must be specified.");
          securityFunctionKey
              .setSecurityFunctionName(alternateKeyHelper.validateStringParameter("security function name", securityFunctionKey.getSecurityFunctionName()));
      }
focal_method.class_method_signature: SecurityFunctionHelper.validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)
focal_method.full_signature: public void validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)
focal_method.identifier: validateAndTrimSecurityFunctionKey
focal_method.invocations: notNull setSecurityFunctionName validateStringParameter getSecurityFunctionName
focal_method.modifiers: public
focal_method.parameters: (SecurityFunctionKey securityFunctionKey)
focal_method.return: void
focal_method.signature: void validateAndTrimSecurityFunctionKey(SecurityFunctionKey securityFunctionKey)