SuperClassMissing { public static void main(String[] args) { System.out.println(C.class.getCanonicalName()); }  static void main(String[] args);  }
@Test public void shouldThrowError() throws Exception { thrown.expect(NoClassDefFoundError.class); thrown.expectMessage("WillGoAway"); SuperClassMissing.main(new String[0]); }