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