public function testSpecificationCallbackCanCreateSpecification()
{
$record = 'foo';
$import = new SubImport(function () use($record) {
return new StaticDataImportSpecification(new \ArrayIterator([$record]));
});
$import->setPorter(new Porter());
$records = $import(null);
self::assertSame($record, $records[0]);
}