DaemonOperationOptions implements OperationOptions { public void setWatchRoots(List<String> watchRoots) { this.watchRoots = watchRoots; } DaemonOperationOptions();  DaemonOperationOptions(DaemonAction action); DaemonAction getAction(); void setAction(DaemonAction action); List<String> getWatchRoots(); void setWatchRoots(List<String> watchRoots);  }
@Test public void testSetWatchRoots() { options = new DaemonOperationOptions(); List<String> watchRoots = new ArrayList<String>(); watchRoots.add("root1"); watchRoots.add("root2"); options.setWatchRoots(watchRoots); List<String> res = options.getWatchRoots(); assertNotNull(res); assertFalse(res.isEmpty()); assertTrue(res.contains("root1")); assertTrue(res.contains("root2")); }