SheetsHelper { public void updateRow(String spreadsheetId, String sheetName, ValueRange row) throws IOException { if (row == null) { throw new IllegalArgumentException("ValueRange cannot be null"); } sheetsService.updateRow(spreadsheetId, sheetName, row); } SheetsHelper(GoogleAccountCredential credential, HttpTransport transport, JsonFactory jsonFactory);   SheetsHelper(@NonNull SheetsService sheetsService); void resizeSpreadSheet(String spreadsheetId, int sheetId, int columnSize); void insertRow(String spreadsheetId, String sheetName, ValueRange row); void updateRow(String spreadsheetId, String sheetName, ValueRange row); void addSheet(String spreadsheetId, String sheetName); List<List<Object>> getSheetCells(String spreadsheetId, String sheetName); Spreadsheet getSpreadsheet(String spreadsheetId);  }
@Test(expected = IllegalArgumentException.class) public void updateRowShouldThrowErrorWhenValueRangeIsNull() throws IOException { sheetsHelper.updateRow("spreadsheet_id", "sheet_name", null); }
@Test public void updateRowTest() throws IOException { ValueRange valueRange = new ValueRange(); sheetsHelper.updateRow("spreadsheet_id", "sheet_name!A1", valueRange); verify(sheetsService).updateRow("spreadsheet_id", "sheet_name!A1", valueRange); }