@Test
public void testCreateFromState() {

    bomb(1, 1).setFlagged(true);
    open(0, 0);
    BoardState state = itsBoard.getState();
    Board board = Board.createFromState(state);
    assertEquals(itsBoard.getDimension(), board.getDimension());
    assertEquals(true, board.getField(1, 1).isBomb());
    assertEquals(true, board.getField(0, 0).isOpen());
    assertEquals(true, board.getField(1, 1).isFlagged());
    assertEquals(false, board.getField(0, 1).isOpen());
}