@Test
public void testCreateSecurityRole()
{

    // Create a security role create request.
    SecurityRoleCreateRequest securityRoleCreateRequest = new SecurityRoleCreateRequest(SECURITY_ROLE, DESCRIPTION);
    // Create a security role.
    SecurityRole securityRole = new SecurityRole(SECURITY_ROLE, DESCRIPTION);
    // Mock the external calls.
    when(securityRoleService.createSecurityRole(securityRoleCreateRequest)).thenReturn(securityRole);
    // Call the method under test.
    SecurityRole result = securityRoleRestController.createSecurityRole(securityRoleCreateRequest);
    // Validate the result.
    assertEquals(securityRole, result);
    // Verify the external calls.
    verify(securityRoleService).createSecurityRole(securityRoleCreateRequest);
    verifyNoMoreInteractions(securityRoleService);
}