### Question:
Board extends AbstractBoard<Elements> { public boolean isBarrierAt(int x, int y) { return !isAt(LAYER1, x, y, FLOOR, START, EXIT, GOLD, HOLE) || !isAt(LAYER2, x, y, EMPTY, GOLD, LASER_DOWN, LASER_UP, LASER_LEFT, LASER_RIGHT, ROBO_OTHER, ROBO_OTHER_FLYING, ROBO_OTHER_FALLING, ROBO_OTHER_LASER, ROBO, ROBO_FLYING, ROBO_FALLING, ROBO_LASER); }  @Override Elements valueOf(char ch); boolean isBarrierAt(int x, int y); boolean isHoleAt(int x, int y); Point getMe(); List<Point> getOtherHeroes(); List<Point> getLaserMachines(); List<Point> getLasers(); List<Point> getWalls(); List<Point> getBoxes(); List<Point> getHoles(); List<Point> getExits(); List<Point> getStarts(); List<Point> getGold(); List<Point> getZombies(); boolean isMeAlive(); String maskOverlay(String source, String mask); @Override String toString(); Point getScannerOffset();  }### Answer:
@Test public void shouldBeBarriers() { assertEquals(true, board.isBarrierAt(0, 10)); assertEquals(true, board.isBarrierAt(1, 10)); assertEquals(true, board.isBarrierAt(0, 9)); assertEquals(true, board.isBarrierAt(4, 6)); assertEquals(true, board.isBarrierAt(5, 6)); assertEquals(true, board.isBarrierAt(4, 5)); assertEquals(true, board.isBarrierAt(5, 2)); assertEquals(true, board.isBarrierAt(6, 2)); assertEquals(true, board.isBarrierAt(6, 3)); assertEquals(true, board.isBarrierAt(10, 0)); assertEquals(true, board.isBarrierAt(9, 0)); assertEquals(true, board.isBarrierAt(10, 1)); assertEquals(true, board.isBarrierAt(5, 5)); assertEquals(false, board.isBarrierAt(2, 8)); assertEquals(false, board.isBarrierAt(1, 9)); assertEquals(false, board.isBarrierAt(9, 1)); assertEquals(false, board.isBarrierAt(1, 1)); assertEquals(true, board.isBarrierAt(2, 1)); assertEquals(false, board.isBarrierAt(3, 1)); }