@Test public void test1() { new WithSubClass().mainMethod1(); }
public void mainMethod1() { String foo = new SubClass1().subMethod(); foo += "bar"; }
WithSubClass { public void mainMethod1() { String foo = new SubClass1().subMethod(); foo += "bar"; } }
WithSubClass { public void mainMethod1() { String foo = new SubClass1().subMethod(); foo += "bar"; }  }
WithSubClass { public void mainMethod1() { String foo = new SubClass1().subMethod(); foo += "bar"; }  void mainMethod1(); void mainMethod2(); }
WithSubClass { public void mainMethod1() { String foo = new SubClass1().subMethod(); foo += "bar"; }  void mainMethod1(); void mainMethod2();  }