Fixed parameter type mismatch in addMethodCall example.