### Question:
ExcelReader { public List<String> getRowContents(String sheetName, int rowIndex, int size) { logger.entering(new Object[] { sheetName, rowIndex, size }); Sheet sheet = fetchSheet(sheetName); int actualExcelRow = rowIndex - 1; Row row = sheet.getRow(actualExcelRow); List<String> rowData = getRowContents(row, size); logger.exiting(rowData); return rowData; } ExcelReader(DataResource resource); List<Row> getAllExcelRows(String sheetName, boolean heading); boolean sheetExists(String sheetName); List<String> getRowContents(String sheetName, int rowIndex, int size); List<String> getHeaderRowContents(String sheetName, int size); List<String> getRowContents(Row row, int size); int getRowIndex(String sheetName, String key); Row getAbsoluteSingeExcelRow(String sheetName, int rowNumber);  }### Answer:
@Test(groups = "unit") public void testGetRowContents() { Field[] fields = USER.class.getDeclaredFields(); List<String> rowContents = excelReader.getRowContents("USER", 3, fields.length); assertNotNull(rowContents); assertTrue("[rama, abc123, 123456, 100.00, ph1,ph2,ph3, bnk1, 1-408-225-8040, 12, true, 12.5, 167045, 12.5, 2]" .equals(rowContents.toString())); Row row = excelReader.getAbsoluteSingeExcelRow("User", 3); rowContents = excelReader.getRowContents(row, fields.length); assertNotNull(rowContents); assertTrue("[binh, abc124, 124567, 200.50, ph4,ph5, ph6, bnk2, 1-714-666-0043, 14, true, 13.5, 1234, 13.5, 4]" .equals(rowContents.toString())); }