### Question:
CellsUtils { public static Collection<Row> getRowsFromsCells(Collection<Cells> cellsCol) { Collection<Row> result = new ArrayList<>(); for (Cells cells : cellsCol) { result.add(getRowFromCells(cells)); } return result; }  static JSONObject getJsonFromCell(Cells cells); static Cells getCellFromJson(JSONObject Json, String tableName); static Cells getCellWithMapFromJson(JSONObject Json, String tableName); static T getObjectFromJson(Class<T> classEntity, JSONObject bsonObject); static T getObjectWithMapFromJson(Class<T> classEntity, JSONObject bsonObject); static Row getRowFromCells(Cells cells); static Collection<Row> getRowsFromsCells(Collection<Cells> cellsCol); static StructType getStructTypeFromCells(Cells cells);  }### Answer:
@Test public void testGetRowsFromsCells() { Collection<Cells> cellsCol = new ArrayList<>(); Cells cells = new Cells("namespace", Cell.create("cell1", 1), Cell.create("cell2", "test")); Cells cells2 = new Cells("namespace", Cell.create("cell1", 2), Cell.create("cell2", "test2"), Cell.create("cell3", new ArrayList<String>())); cellsCol.add(cells); cellsCol.add(cells2); Collection<Row> rows = CellsUtils.getRowsFromsCells(cellsCol); assertEquals(rows.size(), cellsCol.size()); }