@Test
public void testGetSecurityRoleFunctions()
{

    // Create a list of security role to function mapping keys.
    SecurityRoleFunctionKeys securityRoleFunctionKeys =
        new SecurityRoleFunctionKeys(Collections.singletonList(new SecurityRoleFunctionKey(SECURITY_ROLE, SECURITY_FUNCTION)));
    // Mock the external calls.
    when(securityRoleFunctionService.getSecurityRoleFunctions()).thenReturn(securityRoleFunctionKeys);
    // Call the method under test.
    SecurityRoleFunctionKeys result = securityRoleFunctionRestController.getSecurityRoleFunctions();
    // Validate the response.
    assertEquals(securityRoleFunctionKeys, result);
    // Verify the external calls.
    verify(securityRoleFunctionService).getSecurityRoleFunctions();
    verifyNoMoreInteractions(securityRoleFunctionService);
}