@Test
public void testGetSecurityRoles()
{

    // Create security role keys.
    SecurityRoleKeys securityRoleKeys = new SecurityRoleKeys(Lists.newArrayList(new SecurityRoleKey(SECURITY_ROLE)));
    // Mock the external calls.
    when(securityRoleService.getSecurityRoles()).thenReturn(securityRoleKeys);
    // Call the method under test.
    SecurityRoleKeys result = securityRoleRestController.getSecurityRoles();
    // Validate the result.
    assertEquals(securityRoleKeys, result);
    // Verify the external calls.
    verify(securityRoleService).getSecurityRoles();
    verifyNoMoreInteractions(securityRoleService);
}