### Question:
Board extends AbstractBoard<Elements> { public boolean isBarrierAt(int x, int y) { if (isOutOfField(x, y)) { return true; } return getBarriers().contains(pt(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_isBarrierAt() { assertEquals(false, board.isBarrierAt(1, 8)); assertEquals(true, board.isBarrierAt(2, 2)); assertEquals(true, board.isBarrierAt(-2, 2)); }