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: securityFunctionDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SecurityFunctionDao securityFunctionDao;
test_class.type: SecurityFunctionDao
test_class.var_name: securityFunctionDao
test_class.declarator: securityFunctionDaoHelper = new SecurityFunctionDaoHelper()
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SecurityFunctionDaoHelper securityFunctionDaoHelper = new SecurityFunctionDaoHelper();
test_class.type: SecurityFunctionDaoHelper
test_class.var_name: securityFunctionDaoHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SecurityFunctionDaoHelperTest.java
test_class.identifier: SecurityFunctionDaoHelperTest
test_case.body: @Test
      public void testGetSecurityFunctionEntity()
      {
          // Create a security function entity.
          SecurityFunctionEntity securityFunctionEntity = new SecurityFunctionEntity();
  
          // Mock the external calls.
          when(securityFunctionDao.getSecurityFunctionByName(SECURITY_FUNCTION)).thenReturn(securityFunctionEntity);
  
          // Call the method under test.
          SecurityFunctionEntity result = securityFunctionDaoHelper.getSecurityFunctionEntity(SECURITY_FUNCTION);
  
          // Validate the results.
          assertEquals(securityFunctionEntity, result);
  
          // Verify the external calls.
          verify(securityFunctionDao).getSecurityFunctionByName(SECURITY_FUNCTION);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: SecurityFunctionDaoHelperTest.testGetSecurityFunctionEntity()
test_case.full_signature: @Test public void testGetSecurityFunctionEntity()
test_case.identifier: testGetSecurityFunctionEntity
test_case.invocations: thenReturn when getSecurityFunctionByName getSecurityFunctionEntity assertEquals getSecurityFunctionByName verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSecurityFunctionEntity()
focal_class.declarator: securityFunctionDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SecurityFunctionDao securityFunctionDao;
focal_class.type: SecurityFunctionDao
focal_class.var_name: securityFunctionDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SecurityFunctionDaoHelper.java
focal_class.identifier: SecurityFunctionDaoHelper
focal_class.class_method_signature: SecurityFunctionDaoHelper.getSecurityFunctionEntity(String securityFunctionName)
focal_class.full_signature: public SecurityFunctionEntity getSecurityFunctionEntity(String securityFunctionName)
focal_class.identifier: getSecurityFunctionEntity
focal_class.modifiers: public
focal_class.parameters: (String securityFunctionName)
focal_class.return: SecurityFunctionEntity
focal_class.signature: SecurityFunctionEntity getSecurityFunctionEntity(String securityFunctionName)
focal_method.body: public SecurityFunctionEntity getSecurityFunctionEntity(String securityFunctionName)
      {
          SecurityFunctionEntity securityFunctionEntity = securityFunctionDao.getSecurityFunctionByName(securityFunctionName);
  
          if (securityFunctionEntity == null)
          {
              throw new ObjectNotFoundException(String.format("Security function with name \"%s\" doesn't exist.", securityFunctionName));
          }
  
          return securityFunctionEntity;
      }
focal_method.class_method_signature: SecurityFunctionDaoHelper.getSecurityFunctionEntity(String securityFunctionName)
focal_method.full_signature: public SecurityFunctionEntity getSecurityFunctionEntity(String securityFunctionName)
focal_method.identifier: getSecurityFunctionEntity
focal_method.invocations: getSecurityFunctionByName format
focal_method.modifiers: public
focal_method.parameters: (String securityFunctionName)
focal_method.return: SecurityFunctionEntity
focal_method.signature: SecurityFunctionEntity getSecurityFunctionEntity(String securityFunctionName)