App { public static void main(String[] args) { Task task = new SimpleTask(); Callback callback = new Callback() { @Override public void call() { LOGGER.info("I'm done now."); } }; task.executeWith(callback); }  static void main(String[] args);  }
@Test public void test() throws IOException { String[] args = {}; App.main(args); }