@Test
public void whoisShouldShowUserDetailsForOnlineUser() {

    final User penny = new User("penny", 123);
    penny.setClient("TestClient");
    penny.setOperatingSystem("Red Hat");
    penny.setIpAddress("10.0.0.80");
    penny.setLogonTime(56789);
    when(controller.getUser("penny")).thenReturn(penny);
    when(dateTools.howLongFromNow(anyLong())).thenReturn("Too long");
    parser.parse("/whois penny");
    verify(messageController).showSystemMessage("/whois - penny:\n" +
                                                        "IP address: 10.0.0.80\n" +
                                                        "Client: TestClient\n" +
                                                        "Operating System: Red Hat\n" +
                                                        "Online: Too long");
    verifyNoMoreInteractions(messageController);
    verify(dateTools).howLongFromNow(56789);
    verify(controller).getUser("penny");
}