public function setUp()
{
$this->storage = $this->createStorage();
$hydrator = new DefaultHydrator($this->storage);
$this->schemaBuilder = new Schema\Builder("text");
$productSchema = new Schema\TypeSchema("test", ["without_default" => new TextField(null, true), "with_default" => new TextField("default value")]);
$this->schemaBuilder->addType($productSchema);
$this->registry = new MetadataAccessRegistry($this->storage, $this->schemaBuilder, $hydrator);
$this->storage->alter($this->schemaBuilder->build());
}