public function testMergeTwoBags1()
{
$constructorA = new SimpleMethodCall('create', []);
$constructorB = null;
$bagA = new SpecificationBag($constructorA, new PropertyBag(), new MethodCallBag());
$bagB = new SpecificationBag($constructorB, new PropertyBag(), new MethodCallBag());
$bag = $bagA->mergeWith($bagB);
$this->assertEquals($constructorA, $bagA->getConstructor());
$this->assertEquals($constructorB, $bagB->getConstructor());
$this->assertEquals($constructorA, $bag->getConstructor());
}