public function testConstruct()
{
$className = '\\Webiny\\Component\\Rest\\Tests\\Mocks\\MockApiClass';
$methodName = 'someMethod';
// get method annotations
$annotations = $this->annotationsFromMethod($className, $methodName);
$paramAnnotations = $annotations->get('param', new ConfigObject([]));
// extract params
$reflection = new \ReflectionClass($className);
$method = $reflection->getMethod('someMethod');
$params = $method->getParameters();
$instance = new ParameterParser($params, $paramAnnotations);
$this->assertInstanceOf('\\Webiny\\Component\\Rest\\Parser\\ParameterParser', $instance);
}