App { public static void main(String[] args) throws Exception { try (SlidingDoor slidingDoor = new SlidingDoor()) { LOGGER.info("Walking in."); } try (TreasureChest treasureChest = new TreasureChest()) { LOGGER.info("Looting contents."); } }  static void main(String[] args);  }
@Test public void test() throws Exception { String[] args = {}; App.main(args); }