@Test
public void clientInfoShouldFillDetailsOnKnownUser() {

    setUpExistingUser();
    responder.clientInfo(100, "swing", 150, "linux",
                         4000, 5000);
    final long logonTime = System.currentTimeMillis() - 150;
    // Allow some slack to avoid flaky test
    assertTrue(user.getLogonTime() <= logonTime && user.getLogonTime() > logonTime - 10);
    assertEquals("swing", user.getClient());
    assertEquals("linux", user.getOperatingSystem());
    assertEquals(4000, user.getPrivateChatPort());
    assertEquals(5000, user.getTcpChatPort());
}