@Test
public void removeUserShouldRemoveUserAndSetOffline() {

    final User user = new User("User1", 124);
    userList.add(user);
    assertEquals(1, userList.indexOf(user));
    assertTrue(user.isOnline());
    controller.removeUser(user, "Bla bla");
    assertEquals(-1, userList.indexOf(user));
    assertFalse(user.isOnline());
}