private static void login() {
    User user = userManagementServiceRemote.login("elouefnijamila", "123");
    if (user != null) {

      System.out.println("OK");
    }
  }
 private static void createUserTest() {
   User user = new User();
   user.setLogin("elouefnijamila");
   user.setPassword("123");
   user.setNameUser("Jamila");
   user.setFirstNameUser("El Ouefni");
   userManagementServiceRemote.createUser(user);
 }
 private static void getRoles() {
   List<Role> roles = userManagementServiceRemote.getRoles();
   System.out.println(roles.size());
 }
 private static void createRoleTest() {
   Role role = new Role();
   role.setLabelRole("Medical Staff");
   userManagementServiceRemote.createRole(role);
 }
 private static void findByIdUserTest() {
   User user = userManagementServiceRemote.findUserById(1L);
 }
 private static void updateUserTest() {
   User user = userManagementServiceRemote.findUserById(1L);
   user.setRoleUser(userManagementServiceRemote.findRoleById(3L));
   userManagementServiceRemote.updateUser(user);
 }