@Test
public void testRichGaugeDisplay() throws Exception {
httpSource = newHttpSource();
RichGaugeSink sink = metrics().newRichGauge();
stream().create(generateStreamName(), "%s | %s", httpSource, sink);
httpSource.ensureReady();
httpSource.postData("5");
httpSource.postData("10");
httpSource.postData("15");
Table t = sink.constructRichGaugeDisplay(15d, -1d, 10d, 15d, 5d, 3L);
assertThat(sink, eventually(exists()));
assertThat(sink, eventually(hasValue(t)));
}