### Question:
CandyGame { boolean continueRound() { for (var i = 0; i < this.cells.length; i++) { if (this.cells[cells.length - 1][i].candy.getType().equals(Type.REWARD_FRUIT)) { return true; } } for (var i = 0; i < this.cells.length; i++) { for (var j = 0; j < this.cells.length; j++) { if (!this.cells[i][j].candy.getType().equals(Type.REWARD_FRUIT)) { var adj = adjacentCells(i, j); for (Cell cell : adj) { if (this.cells[i][j].candy.name.equals(cell.candy.name)) { return true; } } } } } return false; } CandyGame(int num, CellPool pool);   }### Answer:
@Test void continueRoundTest() { var matrix = new Cell[2][2]; var c1 = new Candy("green jelly", "jelly", Type.CRUSHABLE_CANDY, 5); var c2 = new Candy("purple jelly", "jelly", Type.CRUSHABLE_CANDY, 5); var c3 = new Candy("green apple", "apple", Type.REWARD_FRUIT, 10); matrix[0][0] = new Cell(c1, 0, 0); matrix[0][1] = new Cell(c2, 1, 0); matrix[1][0] = new Cell(c3, 0, 1); matrix[1][1] = new Cell(c2, 1, 1); var p = new CellPool(4); var cg = new CandyGame(2, p); cg.cells = matrix; var fruitInLastRow = cg.continueRound(); matrix[1][0].crush(p, matrix); matrix[0][0] = new Cell(c3, 0, 0); var matchingCandy = cg.continueRound(); matrix[0][1].crush(p, matrix); matrix[0][1] = new Cell(c3, 1, 0); var noneLeft = cg.continueRound(); assertTrue(fruitInLastRow && matchingCandy && !noneLeft); }