@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)));
	}
Tests various metrics related sinks.

@author Eric Bottard
@author Ilayaperumal Gopinathan
@author David Turanski
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractMetricsTests.java