@Test
public void testEqualsHashCodeForV3BootstrapBackwardCompat()
throws JsonParseException, JsonMappingException, IOException
{

  Checkpoint cp = null;
  cp = new Checkpoint("{\"consumption_mode\":\"BOOTSTRAP_CATCHUP\", \"bootstrap_since_scn\":0," +
      "\"bootstrap_start_scn\":1000,\"bootstrap_target_scn\":2000,\"bootstrap_catchup_source_index\":1," +
      "\"bootstrap_snapshot_source_index\":1,"+"\"storage_cluster_name\":\"\","+
      "\"bootstrap_snapshot_file_record_offset\":-1}");
  Checkpoint cp2 = new Checkpoint("{\"consumption_mode\":\"BOOTSTRAP_CATCHUP\", \"bootstrap_since_scn\":0," +
      "\"bootstrap_start_scn\":1000,\"bootstrap_target_scn\":2000,\"bootstrap_catchup_source_index\":1," +
      "\"bootstrap_snapshot_source_index\":1}");
  Assert.assertTrue(cp2.equals(cp));
  // The new checkpoint with default values and the old checkpoint without these fields are different.
  // But because we are not using the V3 checkpoints for bootstrap this is ok.
  Assert.assertFalse(cp.equals(cp2));
}