public function testAliases()
{
$f = function () {
};
$this->converter->addAliasMap('http://www.example.com', "myType", $f);
$handlers = \PHPUnit_Framework_Assert::readAttribute($this->converter, 'typeAliases');
$this->assertArrayHasKey('http://www.example.com', $handlers);
$this->assertArrayHasKey('myType', $exmpleHandlers = $handlers['http://www.example.com']);
$this->assertSame($f, $exmpleHandlers['myType']);
}