### Question:
ExcelReader { public List<String> getHeaderRowContents(String sheetName, int size) { logger.entering(new Object[]{sheetName, size}); Sheet sheet = fetchSheet(sheetName); int actualExcelRow = 0; 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 testGetHeaderRow() { Field[] fields = USER.class.getDeclaredFields(); List<String> headerRowList = excelReader.getHeaderRowContents(USER.class.getSimpleName(), fields.length); assertNotNull(headerRowList); assertTrue(("[name, PASSWORD, accountnumber, amount, areaCode, bank, phoneNumber, preintTest, isbooleanGood," + " doubleTest, longTest, floattest, byteTest]").equals(headerRowList.toString())); }