@Test
public void testUpdateSecurityRole()
{

    // Create a security role update request.
    SecurityRoleUpdateRequest securityRoleUpdateRequest = new SecurityRoleUpdateRequest(DESCRIPTION);
    // Create a security role key.
    SecurityRoleKey securityRoleKey = new SecurityRoleKey(SECURITY_ROLE);
    // Create a security role.
    SecurityRole securityRole = new SecurityRole(SECURITY_ROLE, DESCRIPTION);
    // Mock the external calls.
    when(securityRoleService.updateSecurityRole(securityRoleKey, securityRoleUpdateRequest)).thenReturn(securityRole);
    // Call the method under test.
    SecurityRole result = securityRoleRestController.updateSecurityRole(SECURITY_ROLE, securityRoleUpdateRequest);
    // Validate the result.
    assertEquals(securityRole, result);
    // Verify the external calls.
    verify(securityRoleService).updateSecurityRole(securityRoleKey, securityRoleUpdateRequest);
    verifyNoMoreInteractions(securityRoleService);
}