VClock { public TreeMap<String, Long> getClockMap() { return this.vc; } VClock(); void tick(String pid); void set(String pid, long ticks); VClock copy(); long findTicks(String pid); long lastUpdate(); void merge(VClock other); String returnVCString(); void printVC(); TreeMap<String, Long> getClockMap();  }
@Test public void getClockMap() throws Exception { TreeMap clockMap = testClock.getClockMap(); assertTrue("The clock map is not empty!",clockMap.entrySet().isEmpty()); clockMap.put("Proc1", 1); TreeMap clockMap2 = testClock.getClockMap(); assertEquals("The clock map does not contain the expected value!", 1, clockMap2.get("Proc1")); assertEquals("The clock map does not contain the expected key!", "Proc1", clockMap2.firstKey()); }