### Question:
WatchesPathReport { public boolean hasSessions(String path) { return path2Ids.containsKey(path); } WatchesPathReport(Map<String, Set<Long>> path2Ids); boolean hasSessions(String path); Set<Long> getSessions(String path); Map<String, Set<Long>> toMap();  }### Answer:
@Test public void testHasSessions() { assertTrue(r.hasSessions("path1")); assertTrue(r.hasSessions("path2")); assertFalse(r.hasSessions("path3")); }