}
};
}
public static ValuesChecker matches(String expected) {
final Value expectedValue = Value.fromString(expected);
return new ValuesChecker() {
public void checkValues(List<Value> values) {
if (values.size() != 1 || !values.get(0).equals(expectedValue))
throw new RuntimeException("Expected " + expectedValue + ", but got " + values);
}