protected function convert($nodePath, PropertyMappingConfiguration $propertyMappingConfiguration = null)
{
$nodeConverter = new NodeConverter();
$result = $nodeConverter->convertFrom($nodePath, null, array(), $propertyMappingConfiguration);
if ($result instanceof Error) {
$this->fail('Failed with error: ' . $result->getMessage());
}
return $result;
}