### Question:
Board extends AbstractBoard<Elements> { public Elements getAt(int x, int y) { if (isOutOfField(x, y)) { return Elements.BATTLE_WALL; } return super.getAt(x, y); }  @Override Elements valueOf(char ch); boolean isBarrierAt(int x, int y); List<Point> getBarriers(); Point getMe(); List<Point> getEnemies(); List<Point> getBullets(); boolean isGameOver(); Elements getAt(int x, int y); boolean isBulletAt(int x, int y); @Override String toString();  }### Answer:
@Test public void shouldWork_getAt() { assertEquals(Elements.OTHER_TANK_DOWN, board.getAt(1, 4)); assertEquals(Elements.BATTLE_WALL, board.getAt(0, 8)); assertEquals(Elements.WALL, board.getAt(6, 1)); }
@Test public void shouldWork_getAt_point() { assertEquals(Elements.OTHER_TANK_DOWN, board.getAt(pt(1, 4))); assertEquals(Elements.BATTLE_WALL, board.getAt(pt(0, 8))); assertEquals(Elements.WALL, board.getAt(pt(6, 1))); }
@Test public void shouldWork_getAt_outOfBoard() { assertEquals(Elements.BATTLE_WALL, board.getAt(-1, 1)); assertEquals(Elements.BATTLE_WALL, board.getAt(1, -1)); assertEquals(Elements.BATTLE_WALL, board.getAt(100, 1)); assertEquals(Elements.BATTLE_WALL, board.getAt(1, 100)); assertEquals(Elements.BATTLE_WALL, board.getAt(pt(-1, 1))); assertEquals(Elements.BATTLE_WALL, board.getAt(pt(1, -1))); assertEquals(Elements.BATTLE_WALL, board.getAt(pt(100, 1))); assertEquals(Elements.BATTLE_WALL, board.getAt(pt(1, 100))); }