ExpressionStatement statement = (ExpressionStatement) program
.statements().get(1);
StaticMethodInvocation staticMethodInvocation = (StaticMethodInvocation) statement
.getExpression();
IMethodBinding methodBinding = staticMethodInvocation
.resolveMethodBinding();
Assert.assertNotNull(methodBinding);
Assert.assertTrue(methodBinding.isConstructor() == false);
Assert.assertTrue(methodBinding.getName().equals("foo"));