@Test public void testSetVector() throws Exception { String Id1 = "1"; String Id2 = "2"; Clock c1 = new Clock(Id1); Clock c2 = new Clock(Id2); c1.addNode(Id2, 0); c2.setVector(c1.getVector()); Assert.assertEquals(c1.getVector(), c2.getVector()); }