/**
  * @covers \Heystack\Core\DataObjectSchema\SchemaService::addSchema
  */
 public function testCanAddReplaceSchema()
 {
     $schema1 = $this->getMock('Heystack\\Core\\DataObjectSchema\\SchemaInterface');
     $schema2 = $this->getMock('Heystack\\Core\\DataObjectSchema\\SchemaInterface');
     $schema1->expects($this->once())->method('getIdentifier')->will($this->returnValue(new Identifier('test')));
     $schema2->expects($this->once())->method('getIdentifier')->will($this->returnValue(new Identifier('test')));
     $schema1->expects($this->once())->method('getReference')->will($this->returnValue(false));
     $schema2->expects($this->once())->method('getReference')->will($this->returnValue(false));
     $schema1->expects($this->once())->method('mergeSchema')->with($schema2);
     $schemaService = new SchemaService();
     $schemaService->addSchema($schema1);
     $schemaService->addSchema($schema2);
 }