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: securityRoleFunctionDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SecurityRoleFunctionDao securityRoleFunctionDao;
test_class.type: SecurityRoleFunctionDao
test_class.var_name: securityRoleFunctionDao
test_class.declarator: securityRoleFunctionDaoHelper = new SecurityRoleFunctionDaoHelper()
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SecurityRoleFunctionDaoHelper securityRoleFunctionDaoHelper = new SecurityRoleFunctionDaoHelper();
test_class.type: SecurityRoleFunctionDaoHelper
test_class.var_name: securityRoleFunctionDaoHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SecurityRoleFunctionDaoHelperTest.java
test_class.identifier: SecurityRoleFunctionDaoHelperTest
test_case.body: @Test
      public void testGetSecurityRoleFunctionEntity()
      {
          // Create a security role to function mapping key.
          SecurityRoleFunctionKey securityRoleFunctionKey = new SecurityRoleFunctionKey(SECURITY_ROLE, SECURITY_FUNCTION);
  
          // Create a security role to function mapping entity.
          SecurityRoleFunctionEntity securityRoleFunctionEntity = new SecurityRoleFunctionEntity();
  
          // Mock the external calls.
          when(securityRoleFunctionDao.getSecurityRoleFunctionByKey(securityRoleFunctionKey)).thenReturn(securityRoleFunctionEntity);
  
          // Call the method under test.
          SecurityRoleFunctionEntity result = securityRoleFunctionDaoHelper.getSecurityRoleFunctionEntity(securityRoleFunctionKey);
  
          // Validate the results.
          assertEquals(securityRoleFunctionEntity, result);
  
          // Verify the external calls.
          verify(securityRoleFunctionDao).getSecurityRoleFunctionByKey(securityRoleFunctionKey);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: SecurityRoleFunctionDaoHelperTest.testGetSecurityRoleFunctionEntity()
test_case.full_signature: @Test public void testGetSecurityRoleFunctionEntity()
test_case.identifier: testGetSecurityRoleFunctionEntity
test_case.invocations: thenReturn when getSecurityRoleFunctionByKey getSecurityRoleFunctionEntity assertEquals getSecurityRoleFunctionByKey verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSecurityRoleFunctionEntity()
focal_class.declarator: securityRoleFunctionDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SecurityRoleFunctionDao securityRoleFunctionDao;
focal_class.type: SecurityRoleFunctionDao
focal_class.var_name: securityRoleFunctionDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SecurityRoleFunctionDaoHelper.java
focal_class.identifier: SecurityRoleFunctionDaoHelper
focal_class.class_method_signature: SecurityRoleFunctionDaoHelper.getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_class.full_signature: public SecurityRoleFunctionEntity getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_class.identifier: getSecurityRoleFunctionEntity
focal_class.modifiers: public
focal_class.parameters: (SecurityRoleFunctionKey securityRoleFunctionKey)
focal_class.return: SecurityRoleFunctionEntity
focal_class.signature: SecurityRoleFunctionEntity getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.body: public SecurityRoleFunctionEntity getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)
      {
          SecurityRoleFunctionEntity securityRoleFunctionEntity = securityRoleFunctionDao.getSecurityRoleFunctionByKey(securityRoleFunctionKey);
  
          if (securityRoleFunctionEntity == null)
          {
              throw new ObjectNotFoundException(String
                  .format("Security role to function mapping with \"%s\" security role name and \"%s\" security function name doesn't exist.",
                      securityRoleFunctionKey.getSecurityRoleName(), securityRoleFunctionKey.getSecurityFunctionName()));
          }
  
          return securityRoleFunctionEntity;
      }
focal_method.class_method_signature: SecurityRoleFunctionDaoHelper.getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.full_signature: public SecurityRoleFunctionEntity getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.identifier: getSecurityRoleFunctionEntity
focal_method.invocations: getSecurityRoleFunctionByKey format getSecurityRoleName getSecurityFunctionName
focal_method.modifiers: public
focal_method.parameters: (SecurityRoleFunctionKey securityRoleFunctionKey)
focal_method.return: SecurityRoleFunctionEntity
focal_method.signature: SecurityRoleFunctionEntity getSecurityRoleFunctionEntity(SecurityRoleFunctionKey securityRoleFunctionKey)