"public void bar(sharpen.ui.tests.BindingTestCaseSubject.Baz b) { b.bar(); }" +
"}";
CompilationUnit ast = createAST(source);
MethodDeclaration method = getType(ast, "Gazonk").getMethods()[0];
MethodInvocation invocation = getFirstMethodInvocation(method);
IMethodBinding definition = BindingUtils.findMethodDefininition(invocation.resolveMethodBinding(), null);
assertEquals("sharpen.ui.tests.BindingTestCaseSubject.Foo.bar", BindingUtils.qualifiedName(definition));
}
private MethodInvocation getFirstMethodInvocation(MethodDeclaration method) {
ExpressionStatement stmt = (ExpressionStatement) method.getBody().statements().get(0);