private Matcher<TableRow> rowWithValue(final int col, final String value) {
		return new DiagnosingMatcher<TableRow>() {

			@Override
			public void describeTo(Description description) {
				description.appendText("a row with ").appendValue(value);
			}

			@Override
			protected boolean matches(Object item, Description mismatchDescription) {
				String actualValue = ((TableRow) item).getValue(col);
				mismatchDescription.appendText("a row with ").appendValue(actualValue);
				return value.equals(actualValue);
			}
		};
	}
This tests that options passed at usage time of a composed module are override definition values.
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractModuleCommandsTests.java