public void testInheritedClassInSpecifiedNamespace() throws Exception {
TranslationUnit unit = parse(
"namespace Foo { class A {}; } " +
"class B : public Foo::A {};");
Namespace namespaceFoo = unit.getChild(0);
ClassDeclaration classA = namespaceFoo.getChild(0);
ClassDeclaration classB = unit.getChild(1);
assertEquals("Foo::A", classA.getQualifiedName());
assertEquals("B", classB.getName());
ClassDeclaration baseB = classB.getBaseClass(0).getDeclaration();
assertEquals("A", baseB.getName());