@Test
public void testGetSecurityFunctions() throws Exception
{

    SecurityFunctionKeys securityFunctionKeys =
        new SecurityFunctionKeys(Arrays.asList(new SecurityFunctionKey(SECURITY_FUNCTION), new SecurityFunctionKey(SECURITY_FUNCTION_2)));
    when(securityFunctionService.getSecurityFunctions()).thenReturn(securityFunctionKeys);
    // Retrieve a list of security function keys.
    SecurityFunctionKeys resultSecurityFunctionKeys = securityFunctionRestController.getSecurityFunctions();
    // Verify the external calls.
    verify(securityFunctionService).getSecurityFunctions();
    verifyNoMoreInteractions(securityFunctionService);
    // Validate the returned object.
    assertEquals(securityFunctionKeys, resultSecurityFunctionKeys);
}