public function testSetDeserializationContext()
 {
     $contextFactoryMock = $this->getMockForAbstractClass('JMS\\Serializer\\ContextFactory\\DeserializationContextFactoryInterface');
     $context = new DeserializationContext();
     $contextFactoryMock->expects($this->once())->method('createDeserializationContext')->will($this->returnValue($context));
     $this->builder->setDeserializationContextFactory($contextFactoryMock);
     $serializer = $this->builder->build();
     $result = $serializer->deserialize('{"value":null}', 'array', 'json');
     $this->assertEquals(array('value' => null), $result);
 }