test_class.declarator: businessObjectFormatDaoHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectFormatDaoHelper businessObjectFormatDaoHelper;
test_class.type: BusinessObjectFormatDaoHelper
test_class.var_name: businessObjectFormatDaoHelper
test_class.declarator: businessObjectFormatExternalInterfaceDaoHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectFormatExternalInterfaceDaoHelper businessObjectFormatExternalInterfaceDaoHelper;
test_class.type: BusinessObjectFormatExternalInterfaceDaoHelper
test_class.var_name: businessObjectFormatExternalInterfaceDaoHelper
test_class.declarator: businessObjectFormatExternalInterfaceDescriptiveInformationHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectFormatExternalInterfaceDescriptiveInformationHelper businessObjectFormatExternalInterfaceDescriptiveInformationHelper;
test_class.type: BusinessObjectFormatExternalInterfaceDescriptiveInformationHelper
test_class.var_name: businessObjectFormatExternalInterfaceDescriptiveInformationHelper
test_class.declarator: businessObjectFormatExternalInterfaceHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectFormatExternalInterfaceHelper businessObjectFormatExternalInterfaceHelper;
test_class.type: BusinessObjectFormatExternalInterfaceHelper
test_class.var_name: businessObjectFormatExternalInterfaceHelper
test_class.declarator: businessObjectFormatExternalInterfaceDescriptiveInformationService
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImpl businessObjectFormatExternalInterfaceDescriptiveInformationService;
test_class.type: BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImpl
test_class.var_name: businessObjectFormatExternalInterfaceDescriptiveInformationService
test_class.declarator: externalInterfaceDaoHelper
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ExternalInterfaceDaoHelper externalInterfaceDaoHelper;
test_class.type: ExternalInterfaceDaoHelper
test_class.var_name: externalInterfaceDaoHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/impl/BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImplTest.java
test_class.identifier: BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImplTest
test_case.body: @Test
      public void testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation()
      {
          // Create a business object format external interface key.
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey =
              new BusinessObjectFormatExternalInterfaceKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, EXTERNAL_INTERFACE);
  
          // Create a business object format key
          BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, null);
  
          // Create an external interface entity.
          ExternalInterfaceEntity externalInterfaceEntity = new ExternalInterfaceEntity();
  
          // Create a business object format entity.
          BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity();
  
          // Create a business object external interface descriptive information object
          BusinessObjectFormatExternalInterfaceDescriptiveInformation businessObjectFormatExternalInterfaceDescriptiveInformation =
              new BusinessObjectFormatExternalInterfaceDescriptiveInformation(businessObjectFormatExternalInterfaceKey, DISPLAY_NAME_FIELD, DESCRIPTION);
  
          // Mock the external calls.
          when(externalInterfaceDaoHelper.getExternalInterfaceEntity(EXTERNAL_INTERFACE)).thenReturn(externalInterfaceEntity);
          when(businessObjectFormatDaoHelper.getBusinessObjectFormatEntity(businessObjectFormatKey)).thenReturn(businessObjectFormatEntity);
          when(businessObjectFormatExternalInterfaceDescriptiveInformationHelper
              .createBusinessObjectFormatExternalInterfaceDescriptiveInformationFromEntities(businessObjectFormatEntity, externalInterfaceEntity))
              .thenReturn(businessObjectFormatExternalInterfaceDescriptiveInformation);
  
          // Call the method under test.
          BusinessObjectFormatExternalInterfaceDescriptiveInformation result = businessObjectFormatExternalInterfaceDescriptiveInformationService
              .getBusinessObjectFormatExternalInterfaceDescriptiveInformation(businessObjectFormatExternalInterfaceKey);
  
          // Validate the results.
          assertEquals(businessObjectFormatExternalInterfaceDescriptiveInformation, result);
  
          // Verify the external calls.
          verify(businessObjectFormatExternalInterfaceHelper).validateAndTrimBusinessObjectFormatExternalInterfaceKey(businessObjectFormatExternalInterfaceKey);
          verify(businessObjectFormatExternalInterfaceDaoHelper).getBusinessObjectFormatExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey);
          verify(externalInterfaceDaoHelper).getExternalInterfaceEntity(EXTERNAL_INTERFACE);
          verify(businessObjectFormatDaoHelper).getBusinessObjectFormatEntity(businessObjectFormatKey);
          verify(businessObjectFormatExternalInterfaceDescriptiveInformationHelper)
              .createBusinessObjectFormatExternalInterfaceDescriptiveInformationFromEntities(businessObjectFormatEntity, externalInterfaceEntity);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImplTest.testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation()
test_case.full_signature: @Test public void testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation()
test_case.identifier: testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation
test_case.invocations: thenReturn when getExternalInterfaceEntity thenReturn when getBusinessObjectFormatEntity thenReturn when createBusinessObjectFormatExternalInterfaceDescriptiveInformationFromEntities getBusinessObjectFormatExternalInterfaceDescriptiveInformation assertEquals validateAndTrimBusinessObjectFormatExternalInterfaceKey verify getBusinessObjectFormatExternalInterfaceEntity verify getExternalInterfaceEntity verify getBusinessObjectFormatEntity verify createBusinessObjectFormatExternalInterfaceDescriptiveInformationFromEntities verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBusinessObjectFormatExternalInterfaceDescriptiveInformation()
focal_class.declarator: businessObjectFormatDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectFormatDaoHelper businessObjectFormatDaoHelper;
focal_class.type: BusinessObjectFormatDaoHelper
focal_class.var_name: businessObjectFormatDaoHelper
focal_class.declarator: businessObjectFormatExternalInterfaceDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectFormatExternalInterfaceDaoHelper businessObjectFormatExternalInterfaceDaoHelper;
focal_class.type: BusinessObjectFormatExternalInterfaceDaoHelper
focal_class.var_name: businessObjectFormatExternalInterfaceDaoHelper
focal_class.declarator: businessObjectFormatExternalInterfaceDescriptiveInformationHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectFormatExternalInterfaceDescriptiveInformationHelper businessObjectFormatExternalInterfaceDescriptiveInformationHelper;
focal_class.type: BusinessObjectFormatExternalInterfaceDescriptiveInformationHelper
focal_class.var_name: businessObjectFormatExternalInterfaceDescriptiveInformationHelper
focal_class.declarator: businessObjectFormatExternalInterfaceHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectFormatExternalInterfaceHelper businessObjectFormatExternalInterfaceHelper;
focal_class.type: BusinessObjectFormatExternalInterfaceHelper
focal_class.var_name: businessObjectFormatExternalInterfaceHelper
focal_class.declarator: externalInterfaceDaoHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ExternalInterfaceDaoHelper externalInterfaceDaoHelper;
focal_class.type: ExternalInterfaceDaoHelper
focal_class.var_name: externalInterfaceDaoHelper
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/impl/BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImpl.java
focal_class.identifier: BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImpl
focal_class.interfaces: implements BusinessObjectFormatExternalInterfaceDescriptiveInformationService
focal_class.class_method_signature: BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImpl.getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.full_signature: @Override public BusinessObjectFormatExternalInterfaceDescriptiveInformation getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.identifier: getBusinessObjectFormatExternalInterfaceDescriptiveInformation
focal_class.modifiers: @Override public
focal_class.parameters: (
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.return: BusinessObjectFormatExternalInterfaceDescriptiveInformation
focal_class.signature: BusinessObjectFormatExternalInterfaceDescriptiveInformation getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.body: @Override
      public BusinessObjectFormatExternalInterfaceDescriptiveInformation getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
      {
          // Validate and trim the business object format external interface key.
          businessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceKey(businessObjectFormatExternalInterfaceKey);
  
          // Ensure that a business object format to external interface mapping with the specified key exists.
          businessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey);
  
          // Retrieve and ensure that an external interface with the specified name exists.
          ExternalInterfaceEntity externalInterfaceEntity =
              externalInterfaceDaoHelper.getExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey.getExternalInterfaceName());
  
          // Get a business object format key from the request. Please note that the key is version-less.
          BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(businessObjectFormatExternalInterfaceKey.getNamespace(),
              businessObjectFormatExternalInterfaceKey.getBusinessObjectDefinitionName(), businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatUsage(),
              businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatFileType(), null);
  
          // Retrieve and ensure that a business object format with the specified alternate key values exists.
          BusinessObjectFormatEntity businessObjectFormatEntity = businessObjectFormatDaoHelper.getBusinessObjectFormatEntity(businessObjectFormatKey);
  
          // Create a business object format external interface descriptive information object from the business object format external interface entity and the
          // external interface entity and return it.
          return businessObjectFormatExternalInterfaceDescriptiveInformationHelper
              .createBusinessObjectFormatExternalInterfaceDescriptiveInformationFromEntities(businessObjectFormatEntity, externalInterfaceEntity);
      }
focal_method.class_method_signature: BusinessObjectFormatExternalInterfaceDescriptiveInformationServiceImpl.getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.full_signature: @Override public BusinessObjectFormatExternalInterfaceDescriptiveInformation getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.identifier: getBusinessObjectFormatExternalInterfaceDescriptiveInformation
focal_method.invocations: validateAndTrimBusinessObjectFormatExternalInterfaceKey getBusinessObjectFormatExternalInterfaceEntity getExternalInterfaceEntity getExternalInterfaceName getNamespace getBusinessObjectDefinitionName getBusinessObjectFormatUsage getBusinessObjectFormatFileType getBusinessObjectFormatEntity createBusinessObjectFormatExternalInterfaceDescriptiveInformationFromEntities
focal_method.modifiers: @Override public
focal_method.parameters: (
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.return: BusinessObjectFormatExternalInterfaceDescriptiveInformation
focal_method.signature: BusinessObjectFormatExternalInterfaceDescriptiveInformation getBusinessObjectFormatExternalInterfaceDescriptiveInformation(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)