### Question:
App { public static void main(String[] args) throws Exception { try (var ignored = new SlidingDoor()) { LOGGER.info("Walking in."); } try (var ignored = new TreasureChest()) { LOGGER.info("Looting contents."); } }  static void main(String[] args);  }### Answer:
@Test void shouldExecuteWithoutException() { assertDoesNotThrow(() -> App.main(new String[]{})); }