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: 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.declarator: externalInterfaceDaoHelper = new ExternalInterfaceDaoHelper()
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private ExternalInterfaceDaoHelper externalInterfaceDaoHelper = new ExternalInterfaceDaoHelper();
test_class.type: ExternalInterfaceDaoHelper
test_class.var_name: externalInterfaceDaoHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/ExternalInterfaceDaoHelperTest.java
test_class.identifier: ExternalInterfaceDaoHelperTest
test_case.body: @Test
      public void testGetExternalInterfaceEntityExternalInterfaceNoExists()
      {
          // Mock the external calls.
          when(externalInterfaceDao.getExternalInterfaceByName(EXTERNAL_INTERFACE)).thenReturn(null);
  
          // Specify the expected exception.
          expectedException.expect(ObjectNotFoundException.class);
          expectedException.expectMessage(String.format("External interface with name \"%s\" doesn't exist.", EXTERNAL_INTERFACE));
  
          // Call the method under test.
          externalInterfaceDaoHelper.getExternalInterfaceEntity(EXTERNAL_INTERFACE);
  
          // Verify the external calls.
          verify(externalInterfaceDao).getExternalInterfaceByName(EXTERNAL_INTERFACE);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: ExternalInterfaceDaoHelperTest.testGetExternalInterfaceEntityExternalInterfaceNoExists()
test_case.full_signature: @Test public void testGetExternalInterfaceEntityExternalInterfaceNoExists()
test_case.identifier: testGetExternalInterfaceEntityExternalInterfaceNoExists
test_case.invocations: thenReturn when getExternalInterfaceByName expect expectMessage format getExternalInterfaceEntity getExternalInterfaceByName verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetExternalInterfaceEntityExternalInterfaceNoExists()
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/ExternalInterfaceDaoHelper.java
focal_class.identifier: ExternalInterfaceDaoHelper
focal_class.class_method_signature: ExternalInterfaceDaoHelper.getExternalInterfaceEntity(String externalInterfaceName)
focal_class.full_signature: public ExternalInterfaceEntity getExternalInterfaceEntity(String externalInterfaceName)
focal_class.identifier: getExternalInterfaceEntity
focal_class.modifiers: public
focal_class.parameters: (String externalInterfaceName)
focal_class.return: ExternalInterfaceEntity
focal_class.signature: ExternalInterfaceEntity getExternalInterfaceEntity(String externalInterfaceName)
focal_method.body: public ExternalInterfaceEntity getExternalInterfaceEntity(String externalInterfaceName)
      {
          ExternalInterfaceEntity externalInterfaceEntity = externalInterfaceDao.getExternalInterfaceByName(externalInterfaceName);
  
          if (externalInterfaceEntity == null)
          {
              throw new ObjectNotFoundException(String.format("External interface with name \"%s\" doesn't exist.", externalInterfaceName));
          }
  
          return externalInterfaceEntity;
      }
focal_method.class_method_signature: ExternalInterfaceDaoHelper.getExternalInterfaceEntity(String externalInterfaceName)
focal_method.full_signature: public ExternalInterfaceEntity getExternalInterfaceEntity(String externalInterfaceName)
focal_method.identifier: getExternalInterfaceEntity
focal_method.invocations: getExternalInterfaceByName format
focal_method.modifiers: public
focal_method.parameters: (String externalInterfaceName)
focal_method.return: ExternalInterfaceEntity
focal_method.signature: ExternalInterfaceEntity getExternalInterfaceEntity(String externalInterfaceName)