@Test
public void test_measure() {

    ManualClock clock = new ManualClock();
    DefaultRegistry r = new DefaultRegistry(clock);
    PollableInfoWrapper w = new PollableInfoWrapper(r.createId("info"),
        new AutoPollFriendlyInfo() {
            @Override
            public AutoPollSuggestion autoPollSuggest() {
                return AutoPollSuggestion.POLL_WHEN_UPDATED;
            }
            @Override
            public long lastModifiedTime() {
                return 10;
            }
            @Override
            public Object value() {
                return "i_am_info";
            }
        }, clock);
    clock.setWallTime(20L);
    Indicator indicator = w.measure();
    assertThat(indicator).isNotNull();
    assertThat(indicator.getTimestamp()).isEqualTo(20L);
    assertThat(indicator.measurements()).hasSize(1);
    assertThat(((Measurement<?>) indicator.measurements().iterator().next()).value())
        .isEqualTo("i_am_info");
}