### Question:
AI implements EnemyAI { List<Direction> getPath(int size, Point from, Point to) { return getPath(size, from).get(to); }  @Override Direction getDirection(Field field, Hero hero, Point me);  }### Answer:
@Test public void shouldTwoEnemiesWithTwoHero_enemyIsBarrier() { setupAI("☼☼☼☼☼☼☼☼" + "☼ ◄ ◄ ☼" + "☼H# #H☼" + "☼H H☼" + "☼H H☼" + "☼H «« H☼" + "☼######☼" + "☼☼☼☼☼☼☼☼"); Enemy enemy2 = level.getEnemies().get(1); assertEquals("[4,2]", enemy2.toString()); Hero hero1 = loderunner.getHeroes().get(0); assertEquals("[2,6]", hero1.toString()); assertEquals("[LEFT, LEFT, LEFT, UP, UP, UP, UP, RIGHT]", ai.getPath(loderunner.size(), enemy2, hero1).toString()); Enemy enemy1 = level.getEnemies().get(0); assertEquals("[3,2]", enemy1.toString()); Hero hero2 = loderunner.getHeroes().get(1); assertEquals("[5,6]", hero2.toString()); assertEquals("[RIGHT, RIGHT, RIGHT, UP, UP, UP, UP, LEFT]", ai.getPath(loderunner.size(), enemy1, hero2).toString()); }