### Question:
AbstractBoard extends AbstractLayeredBoard<E> { public boolean isNear(int x, int y, E element) { for (int layer = 0; layer < countLayers(); ++layer) { if (isNear(layer, x, y, element)) { return true; } } return false; }  abstract E valueOf(char ch); ClientBoard forString(String boardString); @Override AbstractBoard forString(String... layers); List<Point> get(E... elements); boolean isAt(int x, int y, E element); boolean isAt(Point point, E element); E getAt(int x, int y); E getAt(Point point); List<E> getAllAt(int x, int y); List<E> getAllAt(Point point); String boardAsString(); boolean isAt(int x, int y, E... elements); boolean isAt(Point point, E... elements); boolean isNear(int x, int y, E element); boolean isNear(Point point, E element); int countNear(int x, int y, E element); int countNear(Point point, E element); List<E> getNear(int x, int y); List<E> getNear(Point point); void set(int x, int y, char ch); char[][] getField();  }### Answer:
@Test public void shouldWork_isNear() { assertEquals(true, board.isNear(1, 1, Elements.ONE)); assertEquals(false, board.isNear(5, 5, Elements.TWO)); }