@Test
public void testStaticMethodOfInstance() {

    MockLayoutBinder lb = new MockLayoutBinder();
    mExprModel = lb.getModel();
    lb.addVariable("user", User.class.getCanonicalName(), null);
    MethodCallExpr methodCall = parse(lb, "user.ourStaticMethod()", MethodCallExpr.class);
    assertTrue(methodCall.isDynamic());
    mExprModel.seal();
    final Expr child = methodCall.getTarget();
    assertTrue(child instanceof StaticIdentifierExpr);
    StaticIdentifierExpr id = (StaticIdentifierExpr) child;
    assertEquals(id.getResolvedType().getCanonicalName(), User.class.getCanonicalName());
}