public function testClass()
{
$connectionStub = $this->prophesize(ConnectionInterface::class);
$connectionStub->annotate(Argument::any())->willReturn(['responses' => [['imagePropertiesAnnotation' => [[]]]]]);
$snippet = $this->snippetFromClass(ImageProperties::class);
$snippet->addLocal('connectionStub', $connectionStub->reveal());
$snippet->setLine(5, '$imageResource = fopen(\'php://temp\', \'r\');');
$snippet->insertAfterLine(3, '$reflection = new \\ReflectionClass($vision);
$property = $reflection->getProperty(\'connection\');
$property->setAccessible(true);
$property->setValue($vision, $connectionStub);
$property->setAccessible(false);');
$res = $snippet->invoke('imageProperties');
$this->assertInstanceOf(ImageProperties::class, $res->returnVal());
}