@Test
public void testTooManyBombs() {

    Board board = new Board(5, 5);
    int bombs = 25;
    new ExcludeNeighborsBoardMiner().mine(board, bombs, (Field) board.getField(1, 1));
    assertEquals(16, countBombs(board));
    assertEquals(false, board.getField(1, 1).isBomb());
}