### Question:
CellsUtils { public static Row getRowFromCells(Cells cells) { Object[] values = cells.getCellValues().toArray(); return RowFactory.create(values); }  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 testGetRowFromCells() { Cells cells = new Cells("namespace", Cell.create("cell1", 1), Cell.create("cell2", "test"), Cell.create("cell3", new ArrayList<String>())); Row row = CellsUtils.getRowFromCells(cells); assertEquals(row.length(), cells.size()); assertEquals(row.get(0), 1); assertEquals(row.get(1), "test"); assertEquals(row.get(2), new ArrayList<String>()); }