@Test
public void merge() throws Exception {

    VClock testClock2 = new VClock();
    testClock.set("Proc1", 1);
    testClock.set("Proc2", 2);
    testClock2.set("Proc2", 3);
    testClock2.set("Proc3", 1);
    VClock mergeClock = testClock.copy();
    mergeClock.merge(testClock2);
    assertEquals("The clock did not merge correctly!",  "{\"Proc1\":1, \"Proc2\":3," +
            " \"Proc3\":1}", mergeClock.returnVCString());
}