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: businessObjectFormatDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectFormatDao businessObjectFormatDao;
test_class.type: BusinessObjectFormatDao
test_class.var_name: businessObjectFormatDao
test_class.declarator: businessObjectFormatExternalInterfaceDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BusinessObjectFormatExternalInterfaceDao businessObjectFormatExternalInterfaceDao;
test_class.type: BusinessObjectFormatExternalInterfaceDao
test_class.var_name: businessObjectFormatExternalInterfaceDao
test_class.declarator: businessObjectFormatExternalInterfaceDaoHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private BusinessObjectFormatExternalInterfaceDaoHelper businessObjectFormatExternalInterfaceDaoHelper;
test_class.type: BusinessObjectFormatExternalInterfaceDaoHelper
test_class.var_name: businessObjectFormatExternalInterfaceDaoHelper
test_class.declarator: externalInterfaceDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ExternalInterfaceDao externalInterfaceDao;
test_class.type: ExternalInterfaceDao
test_class.var_name: externalInterfaceDao
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/BusinessObjectFormatExternalInterfaceDaoHelperTest.java
test_class.identifier: BusinessObjectFormatExternalInterfaceDaoHelperTest
test_case.body: @Test
      public void testGetBusinessObjectFormatExternalInterfaceEntity()
      {
          // 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 version-less business object format key.
          BusinessObjectFormatKey businessObjectFormatKey = new BusinessObjectFormatKey(NAMESPACE, BDEF_NAME, FORMAT_USAGE_CODE, FORMAT_FILE_TYPE_CODE, null);
  
          // Create a business object format entity.
          BusinessObjectFormatEntity businessObjectFormatEntity = new BusinessObjectFormatEntity();
  
          // Create a external interface entity.
          ExternalInterfaceEntity externalInterfaceEntity = new ExternalInterfaceEntity();
  
          // Create a business object format to external interface mapping entity.
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity = new BusinessObjectFormatExternalInterfaceEntity();
  
          // Mock the external calls.
          when(businessObjectFormatDao.getBusinessObjectFormatByAltKey(businessObjectFormatKey)).thenReturn(businessObjectFormatEntity);
          when(externalInterfaceDao.getExternalInterfaceByName(EXTERNAL_INTERFACE)).thenReturn(externalInterfaceEntity);
          when(businessObjectFormatExternalInterfaceDao
              .getBusinessObjectFormatExternalInterfaceByBusinessObjectFormatAndExternalInterface(businessObjectFormatEntity, externalInterfaceEntity))
              .thenReturn(businessObjectFormatExternalInterfaceEntity);
  
          // Call the method under test.
          BusinessObjectFormatExternalInterfaceEntity result =
              businessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey);
  
          // Validate the results.
          assertEquals(businessObjectFormatExternalInterfaceEntity, result);
  
          // Verify the external calls.
          verify(businessObjectFormatDao).getBusinessObjectFormatByAltKey(businessObjectFormatKey);
          verify(externalInterfaceDao).getExternalInterfaceByName(EXTERNAL_INTERFACE);
          verify(businessObjectFormatExternalInterfaceDao)
              .getBusinessObjectFormatExternalInterfaceByBusinessObjectFormatAndExternalInterface(businessObjectFormatEntity, externalInterfaceEntity);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: BusinessObjectFormatExternalInterfaceDaoHelperTest.testGetBusinessObjectFormatExternalInterfaceEntity()
test_case.full_signature: @Test public void testGetBusinessObjectFormatExternalInterfaceEntity()
test_case.identifier: testGetBusinessObjectFormatExternalInterfaceEntity
test_case.invocations: thenReturn when getBusinessObjectFormatByAltKey thenReturn when getExternalInterfaceByName thenReturn when getBusinessObjectFormatExternalInterfaceByBusinessObjectFormatAndExternalInterface getBusinessObjectFormatExternalInterfaceEntity assertEquals getBusinessObjectFormatByAltKey verify getExternalInterfaceByName verify getBusinessObjectFormatExternalInterfaceByBusinessObjectFormatAndExternalInterface verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetBusinessObjectFormatExternalInterfaceEntity()
focal_class.declarator: businessObjectFormatDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectFormatDao businessObjectFormatDao;
focal_class.type: BusinessObjectFormatDao
focal_class.var_name: businessObjectFormatDao
focal_class.declarator: businessObjectFormatExternalInterfaceDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private BusinessObjectFormatExternalInterfaceDao businessObjectFormatExternalInterfaceDao;
focal_class.type: BusinessObjectFormatExternalInterfaceDao
focal_class.var_name: businessObjectFormatExternalInterfaceDao
focal_class.declarator: externalInterfaceDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ExternalInterfaceDao externalInterfaceDao;
focal_class.type: ExternalInterfaceDao
focal_class.var_name: externalInterfaceDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/BusinessObjectFormatExternalInterfaceDaoHelper.java
focal_class.identifier: BusinessObjectFormatExternalInterfaceDaoHelper
focal_class.class_method_signature: BusinessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.full_signature: public BusinessObjectFormatExternalInterfaceEntity getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.identifier: getBusinessObjectFormatExternalInterfaceEntity
focal_class.modifiers: public
focal_class.parameters: (
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_class.return: BusinessObjectFormatExternalInterfaceEntity
focal_class.signature: BusinessObjectFormatExternalInterfaceEntity getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.body: public BusinessObjectFormatExternalInterfaceEntity getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
      {
          // Get a business object format entity. Since business object format to external interface
          // mapping is version-less, retrieve the latest version of the business object format.
          BusinessObjectFormatEntity businessObjectFormatEntity = businessObjectFormatDao.getBusinessObjectFormatByAltKey(
              new BusinessObjectFormatKey(businessObjectFormatExternalInterfaceKey.getNamespace(),
                  businessObjectFormatExternalInterfaceKey.getBusinessObjectDefinitionName(),
                  businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatUsage(),
                  businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatFileType(), null));
  
          // If business object format exists, then try to retrieve specified external interface.
          ExternalInterfaceEntity externalInterfaceEntity = null;
          if (businessObjectFormatEntity != null)
          {
              externalInterfaceEntity = externalInterfaceDao.getExternalInterfaceByName(businessObjectFormatExternalInterfaceKey.getExternalInterfaceName());
          }
  
          // If business object format and external interface both exist, then try to retrieve business object format to external interface mapping.
          BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity = null;
          if (externalInterfaceEntity != null)
          {
              businessObjectFormatExternalInterfaceEntity = businessObjectFormatExternalInterfaceDao
                  .getBusinessObjectFormatExternalInterfaceByBusinessObjectFormatAndExternalInterface(businessObjectFormatEntity, externalInterfaceEntity);
          }
  
          // Throw an exception if specified business object format to external interface mapping does not exist.
          if (businessObjectFormatExternalInterfaceEntity == null)
          {
              throw new ObjectNotFoundException(String.format(
                  "Business object format to external interface mapping with \"%s\" namespace, \"%s\" business object definition name, " +
                      "\"%s\" business object format usage, \"%s\" business object format file type, and \"%s\" external interface name doesn't exist.",
                  businessObjectFormatExternalInterfaceKey.getNamespace(), businessObjectFormatExternalInterfaceKey.getBusinessObjectDefinitionName(),
                  businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatUsage(),
                  businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatFileType(),
                  businessObjectFormatExternalInterfaceKey.getExternalInterfaceName()));
          }
  
          return businessObjectFormatExternalInterfaceEntity;
      }
focal_method.class_method_signature: BusinessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.full_signature: public BusinessObjectFormatExternalInterfaceEntity getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.identifier: getBusinessObjectFormatExternalInterfaceEntity
focal_method.invocations: getBusinessObjectFormatByAltKey getNamespace getBusinessObjectDefinitionName getBusinessObjectFormatUsage getBusinessObjectFormatFileType getExternalInterfaceByName getExternalInterfaceName getBusinessObjectFormatExternalInterfaceByBusinessObjectFormatAndExternalInterface format getNamespace getBusinessObjectDefinitionName getBusinessObjectFormatUsage getBusinessObjectFormatFileType getExternalInterfaceName
focal_method.modifiers: public
focal_method.parameters: (
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
focal_method.return: BusinessObjectFormatExternalInterfaceEntity
focal_method.signature: BusinessObjectFormatExternalInterfaceEntity getBusinessObjectFormatExternalInterfaceEntity(
          BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)