### Question:
Spreadsheet { public List<String> getHeaderRow() { return headerRow; } Spreadsheet(boolean convertHeaderNames, String... headerArray);  Spreadsheet(boolean convertHeaderNames, List<String> caseInsensitiveHeaders, String... headerArray);  Spreadsheet(boolean convertHeaderNames, InputStream file, String... required);  Spreadsheet(boolean convertHeaderNames, RequestParameter file, String... required);  Spreadsheet(InputStream file, String... required);  Spreadsheet(RequestParameter file, String... required);  Spreadsheet(RequestParameter file, List<String> caseInsensitiveHeaders, String... required); Spreadsheet buildSpreadsheet(); Spreadsheet buildSpreadsheet(Locale locale); String getFileName(); int getRowCount(); List<String> getHeaderRow(); List<Map<String, CompositeVariant>> getDataRowsAsCompositeVariants(); Long getRowNum(Map<String, CompositeVariant> row); List<String> getRequiredColumns(); String convertHeaderName(String str); static final String DEFAULT_DELIMITER; static final String ROW_NUMBER; }### Answer:
@Test public void testGetHeaderRow() throws IOException { Spreadsheet instance = new Spreadsheet(false, new ByteArrayInputStream(workbookData.toByteArray())) .buildSpreadsheet(); List<String> expResult = Arrays.asList(headerNames); List<String> result = instance.getHeaderRow(); assertTrue("Header row should match", result.containsAll(expResult)); }