public void testPrivateAccessSpecifier() throws Exception {
TranslationUnit unit = parse(
"class A { private: void foo(); };");
ClassDeclaration classA = unit.getChild(0);
FunctionDeclaration functionFoo = classA.getChild(0);
Visibility visibility = functionFoo.getVisibility();
assertEquals(Visibility.PRIVATE, visibility);
}