@Test
public void testGetNeighbors() {

    Board board = new Board(3, 3);
    assertNeighbors((Field) board.getField(0, 0), board, new int[][]{{1, 0},
            {0, 1}, {1, 1}});
    assertNeighbors((Field) board.getField(1, 0), board, new int[][]{{0, 0},
            {0, 1}, {1, 1}, {2, 1}, {2, 0}});
    assertNeighbors((Field) board.getField(1, 1), board, new int[][]{{0, 0},
            {0, 1}, {0, 2}, {1, 2}, {2, 2}, {2, 1}, {2, 0},
            {1, 0}});
}