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