@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();
}