@Test
	public void testMultipleFilters() {
		String idBase = UUID.randomUUID().toString();
		String goodBadText = "{\"id\":A" + idBase
				+ ",\"entities\":{\"hashtags\":[{\"text\":\"good\"},"
				+ "{\"text\":\"bad\"}],\"urls\":[]}}";
		String goodGoodText = "{\"id\":B" + idBase
				+ ",\"entities\":{\"hashtags\":[{\"text\":\"good\"},"
				+ "{\"text\":\"good\"}],\"urls\":[]}}";
		String badBadText = "{\"id\":C" + idBase
				+ ", \"entities\":{\"hashtags\":[{\"text\":\"bad\"},"
				+ "{\"text\":\"bad\"}],\"urls\":[]}}'";

		stream(sources.http() + XD_DELIMITER
				+ " good: filter --expression=#jsonPath(payload,'$.entities.hashtags[*]."
				+ "text').contains('good') "
				+ XD_DELIMITER + " aftergood: filter --expression=true "
				+ XD_DELIMITER + " bad:  filter --expression=#jsonPath(payload,'$."
				+ "entities.hashtags[*].text').contains('bad') "
				+ XD_DELIMITER
				+ " goodandbad: splitter --expression=#jsonPath(payload,'$.id') "
				+ XD_DELIMITER + sinks.file());

		sources.httpSource().postData(goodBadText);
		sources.httpSource().postData(goodGoodText);
		sources.httpSource().postData(badBadText);

		assertValid("A" + idBase, sinks.file());
		assertReceived(1);

	}
Tests Multiple Filters with tags in the same stream.
spring-xd-integration-test/src/test/java/org/springframework/xd/integration/test/ProcessorTest.java