public <S> DataModelSource createSource(
DataModelDefinition<S> inner, TestContext context) throws IOException {
if (inner.getModelClass() != definition.getModelClass()) {
throw new IllegalStateException();
}
return new IteratorDataModelSource(results.iterator());
}
@Override
public String toString() {
return "DataModelSource(Iterable)";
}