void () { myFixture.addClass(""" package java.util; public class Objects { public static String toString(Object object) { return null; } }"""); doTest(""" import java.util.Objects; class X { private int i = 0; public String toString() { return Objects.toString(this); } }"""); }