final MockDataModelSink sink = new MockDataModelSink();
MockFlowDriverOutput mock = new MockFlowDriverOutput(getClass(), new MockTestDataToolProvider() {
@Override
public DataModelSinkFactory getDataModelSinkFactory(URI uri) {
assertThat(new File(uri).getName(), is(file.getName()));
return new DataModelSinkFactory() {
@Override
public <T> DataModelSink createSink(DataModelDefinition<T> definition, TestContext context) {
return sink;
}
};