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 testCreateBusinessObjectFormatExternalInterfaceFromEntity()
      {
          // Create a namespace entity.
          NamespaceEntity namespaceEntity = new NamespaceEntity();
          namespaceEntity.setCode(NAMESPACE);
  
          // Create a business object definition entity.
          BusinessObjectDefinitionEntity businessObjectDefinitionEntity = new BusinessObjectDefinitionEntity();
          businessObjectDefinitionEntity.setNamespace(namespaceEntity);
          businessObjectDefinitionEntity.setName(BDEF_NAME);
  
          // Create a file type entity.
          FileTypeEntity fileTypeEntity = new FileTypeEntity();
          fileTypeEntity.setCode(FORMAT_FILE_TYPE_CODE);
  
          // Create a business object format entity.
          BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity();
          businessObjectFormatEntity.setBusinessObjectDefinition(businessObjectDefinitionEntity);
          businessObjectFormatEntity.setUsage(FORMAT_USAGE_CODE);
          businessObjectFormatEntity.setFileType(fileTypeEntity);
  
          // Create a external interface entity.
          ExternalInterfaceEntity externalInterfaceEntity = new ExternalInterfaceEntity();
          externalInterfaceEntity.setCode(EXTERNAL_INTERFACE);
  
          // Create a business object format to external interface mapping entity.
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity = new BusinessObjectFormatExternalInterfaceEntity();
          businessObjectFormatExternalInterfaceEntity.setId(ID);
          businessObjectFormatExternalInterfaceEntity.setBusinessObjectFormat(businessObjectFormatEntity);
          businessObjectFormatExternalInterfaceEntity.setExternalInterface(externalInterfaceEntity);
  
          // Call the method under test.
          BusinessObjectFormatExternalInterface result =
              businessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(businessObjectFormatExternalInterfaceEntity);
  
          // Validate the results.
          assertEquals(new BusinessObjectFormatExternalInterface(ID,
              new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE)), result);
  
          // Verify the external calls.
          verifyNoMoreInteractions(alternateKeyHelper);
      }
test_case.class_method_signature: BusinessObjectFormatExternalInterfaceHelperTest.testCreateBusinessObjectFormatExternalInterfaceFromEntity()
test_case.full_signature: @Test public void testCreateBusinessObjectFormatExternalInterfaceFromEntity()
test_case.identifier: testCreateBusinessObjectFormatExternalInterfaceFromEntity
test_case.invocations: setCode setNamespace setName setCode setBusinessObjectDefinition setUsage setFileType setCode setId setBusinessObjectFormat setExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity assertEquals verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateBusinessObjectFormatExternalInterfaceFromEntity()
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 BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
      {
          return new BusinessObjectFormatExternalInterface(businessObjectFormatExternalInterfaceEntity.getId(),
              createBusinessObjectFormatExternalInterfaceKeyFromEntity(businessObjectFormatExternalInterfaceEntity));
      }
focal_method.class_method_signature: BusinessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_method.full_signature: public BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_method.identifier: createBusinessObjectFormatExternalInterfaceFromEntity
focal_method.invocations: getId createBusinessObjectFormatExternalInterfaceKeyFromEntity
focal_method.modifiers: public
focal_method.parameters: (
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
focal_method.return: BusinessObjectFormatExternalInterface
focal_method.signature: BusinessObjectFormatExternalInterface createBusinessObjectFormatExternalInterfaceFromEntity(
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)