### Question:
App { public static void main(String[] args) { App app = new App(); LOGGER.info("Elf Kingdom"); app.createKingdom(FactoryMaker.makeFactory(KingdomType.ELF)); LOGGER.info(app.getArmy().getDescription()); LOGGER.info(app.getCastle().getDescription()); LOGGER.info(app.getKing().getDescription()); LOGGER.info("Orc Kingdom"); app.createKingdom(FactoryMaker.makeFactory(KingdomType.ORC)); LOGGER.info(app.getArmy().getDescription()); LOGGER.info(app.getCastle().getDescription()); LOGGER.info(app.getKing().getDescription()); }  void createKingdom(final KingdomFactory factory); King getKing(); Castle getCastle(); Army getArmy(); static void main(String[] args);  }### Answer:
@Test public void test() throws IOException { String[] args = {}; App.main(args); }