App { public static void main(String... args) { final WashingMachine washingMachine = new WashingMachine(); ExecutorService executorService = Executors.newFixedThreadPool(3); for (int i = 0; i < 3; i++) { executorService.execute(washingMachine::wash); } executorService.shutdown(); try { executorService.awaitTermination(10, TimeUnit.SECONDS); } catch (InterruptedException ie) { LOGGER.error("ERROR: Waiting on executor service shutdown!"); } }  static void main(String... args);  }
@Test public void main() throws Exception { String[] args = {}; App.main(args); }