### Question:
Watch { public boolean ads() { return ads; } Watch(boolean ads, XdsRequest request, Consumer<Response> responseConsumer); boolean ads(); void cancel(); boolean isCancelled(); XdsRequest request(); void respond(Response response); void setStop(Runnable stop);  }### Answer:
@Test public void adsReturnsGivenValue() { final boolean ads = ThreadLocalRandom.current().nextBoolean(); Watch watch = new Watch(ads, XdsRequest.create(DiscoveryRequest.getDefaultInstance()), r -> { }); assertThat(watch.ads()).isEqualTo(ads); }