### Question:
Spreadsheet { public int getRowCount() { return rowCount; } 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 testGetRowCount() throws IOException { Spreadsheet instance = new Spreadsheet(new ByteArrayInputStream(workbookData.toByteArray())).buildSpreadsheet(); int expResult = 6; int result = instance.getRowCount(); assertEquals(expResult, result); }