@Test public void shouldThrowError() throws Exception { thrown.expect(NoSuchMethodError.class); thrown.expectMessage("A.methodTwo"); MethodRemoved.main(new String[0]); }
public static void main(String[] args) { A a = new A(); a.methodOne("hi from Simple"); a.methodTwo("hi again from Simple"); B.methodShouldBeMissing(); }
MethodRemoved { public static void main(String[] args) { A a = new A(); a.methodOne("hi from Simple"); a.methodTwo("hi again from Simple"); B.methodShouldBeMissing(); } }
MethodRemoved { public static void main(String[] args) { A a = new A(); a.methodOne("hi from Simple"); a.methodTwo("hi again from Simple"); B.methodShouldBeMissing(); }  }
MethodRemoved { public static void main(String[] args) { A a = new A(); a.methodOne("hi from Simple"); a.methodTwo("hi again from Simple"); B.methodShouldBeMissing(); }  static void main(String[] args); }
MethodRemoved { public static void main(String[] args) { A a = new A(); a.methodOne("hi from Simple"); a.methodTwo("hi again from Simple"); B.methodShouldBeMissing(); }  static void main(String[] args);  }