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: securityRoleDao
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private SecurityRoleDao securityRoleDao;
test_class.type: SecurityRoleDao
test_class.var_name: securityRoleDao
test_class.declarator: securityRoleDaoHelper = new SecurityRoleDaoHelper()
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private SecurityRoleDaoHelper securityRoleDaoHelper = new SecurityRoleDaoHelper();
test_class.type: SecurityRoleDaoHelper
test_class.var_name: securityRoleDaoHelper
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/helper/SecurityRoleDaoHelperTest.java
test_class.identifier: SecurityRoleDaoHelperTest
test_case.body: @Test
      public void testGetSecurityRoleEntitySecurityRoleNoExists()
      {
          // Specify the expected exception.
          expectedException.expect(ObjectNotFoundException.class);
          expectedException.expectMessage(String.format("Security role with name \"%s\" doesn't exist.", SECURITY_ROLE));
  
          // Mock the external calls.
          when(securityRoleDao.getSecurityRoleByName(SECURITY_ROLE)).thenReturn(null);
  
          // Call the method under test.
          securityRoleDaoHelper.getSecurityRoleEntity(SECURITY_ROLE);
  
          // Verify the external calls.
          verify(securityRoleDao).getSecurityRoleByName(SECURITY_ROLE);
          verifyNoMoreInteractionsHelper();
      }
test_case.class_method_signature: SecurityRoleDaoHelperTest.testGetSecurityRoleEntitySecurityRoleNoExists()
test_case.full_signature: @Test public void testGetSecurityRoleEntitySecurityRoleNoExists()
test_case.identifier: testGetSecurityRoleEntitySecurityRoleNoExists
test_case.invocations: expect expectMessage format thenReturn when getSecurityRoleByName getSecurityRoleEntity getSecurityRoleByName verify verifyNoMoreInteractionsHelper
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetSecurityRoleEntitySecurityRoleNoExists()
focal_class.declarator: securityRoleDao
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SecurityRoleDao securityRoleDao;
focal_class.type: SecurityRoleDao
focal_class.var_name: securityRoleDao
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/helper/SecurityRoleDaoHelper.java
focal_class.identifier: SecurityRoleDaoHelper
focal_class.class_method_signature: SecurityRoleDaoHelper.getSecurityRoleEntity(String securityRoleName)
focal_class.full_signature: public SecurityRoleEntity getSecurityRoleEntity(String securityRoleName)
focal_class.identifier: getSecurityRoleEntity
focal_class.modifiers: public
focal_class.parameters: (String securityRoleName)
focal_class.return: SecurityRoleEntity
focal_class.signature: SecurityRoleEntity getSecurityRoleEntity(String securityRoleName)
focal_method.body: public SecurityRoleEntity getSecurityRoleEntity(String securityRoleName)
      {
          SecurityRoleEntity securityRoleEntity = securityRoleDao.getSecurityRoleByName(securityRoleName);
  
          if (securityRoleEntity == null)
          {
              throw new ObjectNotFoundException(String.format("Security role with name \"%s\" doesn't exist.", securityRoleName));
          }
  
          return securityRoleEntity;
      }
focal_method.class_method_signature: SecurityRoleDaoHelper.getSecurityRoleEntity(String securityRoleName)
focal_method.full_signature: public SecurityRoleEntity getSecurityRoleEntity(String securityRoleName)
focal_method.identifier: getSecurityRoleEntity
focal_method.invocations: getSecurityRoleByName format
focal_method.modifiers: public
focal_method.parameters: (String securityRoleName)
focal_method.return: SecurityRoleEntity
focal_method.signature: SecurityRoleEntity getSecurityRoleEntity(String securityRoleName)