@Override
		protected boolean matches(Object item, Description description) {
			int size = (Integer) item;
			List<TableRow> list = getRuntimeModulesForStream(streamName);
			if (list.size() == size) {
				return true;
			}
			else {
				description.appendText("Expected ")
						.appendValue(size)
						.appendText(" number of modules for stream ")
						.appendText(streamName)
						.appendText(" in list ")
						.appendValue(list)
						.appendText("; instead there are ")
						.appendValue(list.size())
						.appendText(System.lineSeparator());
				return false;
			}
		}
{@inheritDoc}
<p>
Return true if the integer (passed in as {@code item})
matches the number of deployed modules.
</p>
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractRuntimeCommandsTests.java