@Test
public void testAutoPollSuggestion_POLL_WHEN_UPDATED() {

    ManualClock clock = new ManualClock();
    Registry r = new DefaultRegistry(clock);
    PollableInfoWrapper pollableInfoWrapper = new PollableInfoWrapper(r.createId("name"),
        new AutoPollFriendlyInfo() {
            @Override
            public AutoPollSuggestion autoPollSuggest() {
                return POLL_WHEN_UPDATED;
            }
            @Override
            public long lastModifiedTime() {
                return 1;
            }
            @Override
            public String value() {
                return "x";
            }
        }, clock);
    Assert.assertTrue(pollableInfoWrapper.isAutoPolledAllowed(1000));
    Assert.assertTrue(pollableInfoWrapper.isAutoPolledAllowed(9000));
}