@Test
	public void testFieldValueCounterDisplay() throws Exception {

		//This test disabled for Windows since we can't assume 'tail' is installed.
		org.junit.Assume.assumeFalse(System.getProperty("os.name").toLowerCase().startsWith("windows"));
		TreeMap<String, Double> fvcMap = new TreeMap<String, Double>();
		fvcMap.put("BestNoSQL", 1d);
		fvcMap.put("SpringSource", 2d);
		TailSource tailSource = newTailSource();
		tailTweets(tailSource);

		FieldValueCounterSink sink = metrics().newFieldValueCounterSink("fromUser");
		stream().create(generateStreamName(), "%s | %s", tailSource, sink);

		Table t = sink.constructFVCDisplay(fvcMap);
		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