@Test
public void testParse() throws Exception {

    final LoginInfoJsonParser parser = new LoginInfoJsonParser();
    final LoginInfo loginInfo = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/loginInfo/valid.json"));
    assertEquals(new LoginInfo(5, 379, TestUtil.toDateTime("2010-09-13T17:19:20.752+0200"),
            TestUtil.toDateTime("2010-09-13T17:19:38.220+0200")), loginInfo);
}