public function testValueObjectResource()
{
$string = 'test data';
$stream = fopen('php://memory', 'r+');
fwrite($stream, $string);
rewind($stream);
$res = $this->mapper->valueObject($stream);
$this->assertEquals(base64_encode($string), $res['blobValue']);
}