@Test
public void getSpreadsheetTest() throws IOException {

    Spreadsheet mockedSpreadsheet = mock(Spreadsheet.class);
    SpreadsheetProperties mockedProperties = mock(SpreadsheetProperties.class);
    doReturn("sheet_title").when(mockedProperties).getTitle();
    doReturn(mockedProperties).when(mockedSpreadsheet).getProperties();
    doReturn(mockedSpreadsheet).when(sheetsService).getSpreadsheet("spreadsheet_id");
    Spreadsheet spreadsheet = sheetsHelper.getSpreadsheet("spreadsheet_id");
    assertEquals(mockedSpreadsheet, spreadsheet);
    assertBatchUpdateCalled(1);
}