/**
  * @dataProvider availableQuery
  *
  * @param string $rawQuery
  * @param Query $expectedQuery
  */
 public function testResolveMethodReturnValueAndTarget(string $rawQuery, Query $expectedQuery)
 {
     $query = $this->queryResolver->resolve($rawQuery);
     $this->assertInstanceOf(Query::class, $query);
     $this->assertInstanceOf(LengthUnit::class, $query->getTargetUnit());
     $this->assertEquals(10, $query->getValue()->getValue());
     $this->assertEquals($expectedQuery, $query);
 }
 /**
  * @param string $rawQuery
  *
  * @return Value
  *
  * @throws NotSupportedUnitException
  */
 public function convert(string $rawQuery) : Value
 {
     $query = $this->resolver->resolve($rawQuery);
     $converter = $this->getSupportedConverter($query);
     return $converter->convertFromQuery($query);
 }