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: businessObjectFormatExternalInterfaceHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectFormatExternalInterfaceHelper businessObjectFormatExternalInterfaceHelper;
test_class.type: BusinessObjectFormatExternalInterfaceHelper
test_class.var_name: businessObjectFormatExternalInterfaceHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectFormatExternalInterfaceHelperTest.java
test_class.identifier: BusinessObjectFormatExternalInterfaceHelperTest
test_case.body: @Test
      public void testValidateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest()
      {
          // Create a business object format to external interface mapping key.
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey =
              new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE);
  
          // Create a business object format to external interface mapping create request.
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest =
              new BusinessObjectFormatExternalInterfaceCreateRequest(businessObjectFormatExternalInterfaceKey);
  
          // Mock the external calls.
          when(alternateKeyHelper.validateStringParameter("namespace", NAMESPACE)).thenReturn(NAMESPACE_2);
          when(alternateKeyHelper.validateStringParameter("business object definition name", BDEF_NAME)).thenReturn(BDEF_NAME_2);
          when(alternateKeyHelper.validateStringParameter("business object format usage", FORMAT_USAGE_CODE)).thenReturn(FORMAT_USAGE_CODE_2);
          when(alternateKeyHelper.validateStringParameter("business object format file type", FORMAT_FILE_TYPE_CODE)).thenReturn(FORMAT_FILE_TYPE_CODE_2);
          when(alternateKeyHelper.validateStringParameter("An", "external interface name", EXTERNAL_INTERFACE)).thenReturn(EXTERNAL_INTERFACE_2);
  
          // Call the method under test.
          businessObjectFormatExternalInterfaceHelper
              .validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(businessObjectFormatExternalInterfaceCreateRequest);
  
          // Validate the results.
          assertEquals(new BusinessObjectFormatExternalInterfaceCreateRequest(
                  new BusinessObjectFormatExternalInterfaceKey(NAMESPACE_2, BDEF_NAME_2, FORMAT_USAGE_CODE_2, FORMAT_FILE_TYPE_CODE_2, EXTERNAL_INTERFACE_2)),
              businessObjectFormatExternalInterfaceCreateRequest);
  
          // Verify the external calls.
          verify(alternateKeyHelper).validateStringParameter("namespace", NAMESPACE);
          verify(alternateKeyHelper).validateStringParameter("business object definition name", BDEF_NAME);
          verify(alternateKeyHelper).validateStringParameter("business object format usage", FORMAT_USAGE_CODE);
          verify(alternateKeyHelper).validateStringParameter("business object format file type", FORMAT_FILE_TYPE_CODE);
          verify(alternateKeyHelper).validateStringParameter("An", "external interface name", EXTERNAL_INTERFACE);
          verifyNoMoreInteractions(alternateKeyHelper);
      }
test_case.class_method_signature: BusinessObjectFormatExternalInterfaceHelperTest.testValidateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest()
test_case.full_signature: @Test public void testValidateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest()
test_case.identifier: testValidateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest
test_case.invocations: thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter thenReturn when validateStringParameter validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest assertEquals validateStringParameter verify validateStringParameter verify validateStringParameter verify validateStringParameter verify validateStringParameter verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest()
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/BusinessObjectFormatExternalInterfaceHelper.java
focal_class.identifier: BusinessObjectFormatExternalInterfaceHelper
focal_class.class_method_signature: BusinessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.full_signature: public BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.identifier: createBusinessObjectFormatExternalInterfaceFromEntity
focal_class.modifiers: public
focal_class.parameters: (
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.return: BusinessObjectFormatExternalInterface
focal_class.signature: BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.class_method_signature: BusinessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceKeyFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.full_signature: public BusinessObjectFormatExternalInterfaceKey createBusinessObjectFormatExternalInterfaceKeyFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.identifier: createBusinessObjectFormatExternalInterfaceKeyFromEntity
focal_class.modifiers: public
focal_class.parameters: (
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.return: BusinessObjectFormatExternalInterfaceKey
focal_class.signature: BusinessObjectFormatExternalInterfaceKey createBusinessObjectFormatExternalInterfaceKeyFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_class.class_method_signature: BusinessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_class.full_signature: public void validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_class.identifier: validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest
focal_class.modifiers: public
focal_class.parameters: (
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_class.return: void
focal_class.signature: void validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_class.class_method_signature: BusinessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceKey(BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.full_signature: public void validateAndTrimBusinessObjectFormatExternalInterfaceKey(BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.identifier: validateAndTrimBusinessObjectFormatExternalInterfaceKey
focal_class.modifiers: public
focal_class.parameters: (BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.return: void
focal_class.signature: void validateAndTrimBusinessObjectFormatExternalInterfaceKey(BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.body: public void validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
      {
          Assert.notNull(businessObjectFormatExternalInterfaceCreateRequest,
              "A business object format to external interface mapping create request must be specified.");
          validateAndTrimBusinessObjectFormatExternalInterfaceKey(
              businessObjectFormatExternalInterfaceCreateRequest.getBusinessObjectFormatExternalInterfaceKey());
      }
focal_method.class_method_signature: BusinessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_method.full_signature: public void validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_method.identifier: validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest
focal_method.invocations: notNull validateAndTrimBusinessObjectFormatExternalInterfaceKey getBusinessObjectFormatExternalInterfaceKey
focal_method.modifiers: public
focal_method.parameters: (
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)
focal_method.return: void
focal_method.signature: void validateAndTrimBusinessObjectFormatExternalInterfaceCreateRequest(
          BusinessObjectFormatExternalInterfaceCreateRequest businessObjectFormatExternalInterfaceCreateRequest)