@Test public void shouldThrowError() throws Exception { thrown.expect(IncompatibleClassChangeError.class); thrown.expectMessage("Expected static method"); thrown.expectMessage("staticIsNoise"); StaticMethodBecameInstance.main(new String[0]); }
public static void main(String[] args) { B.methodNoLongerStatic(); }
StaticMethodBecameInstance { public static void main(String[] args) { B.methodNoLongerStatic(); } }
StaticMethodBecameInstance { public static void main(String[] args) { B.methodNoLongerStatic(); }  }
StaticMethodBecameInstance { public static void main(String[] args) { B.methodNoLongerStatic(); }  static void main(String[] args); }
StaticMethodBecameInstance { public static void main(String[] args) { B.methodNoLongerStatic(); }  static void main(String[] args);  }