@Test
public void testCheckpoint()
{

    try
    {
      Checkpoint cp = new Checkpoint("{\"scn\":1234, \"scnMessageOffset\":34}");
      Assert.assertEquals(cp.getConsumptionMode(), DbusClientMode.INIT);
    }
    catch (JsonParseException e)
    {
      fail("Should not throw JSON parse exception");
    }
    catch (JsonMappingException e)
    {
      fail("Should not throw JSON parse exception");
    }
    catch (IOException e)
    {
      fail("Should not throw JSON parse exception");
    }
}