### Question:
StripHeaderSupport { public long findHeaderBoundary(int headerRows, InputStream is) throws IOException { int rows = 0; long bytes = 0; boolean eof = false; try (BufferedInputStream bis = new BufferedInputStream(is)) { while (rows < headerRows && !eof) { Boundary boundary = nextLineBoundary(bis); eof = boundary.isEOF; bytes += boundary.bytes; rows++; } } if (rows < headerRows) { return -1L; } return bytes; }  long findHeaderBoundary(int headerRows, InputStream is);  }### Answer:
@Test public void testDoStripHeader() throws Exception { StringBuffer sb = new StringBuffer(); sb.append("name,phone,zip\n"); sb.append("Joe,phone,95121\n"); sb.append("Sally,phone,95121\n"); sb.append("Sam,phone,95120\n"); sb.append("Michael,phone,94550\n"); long bytes = headerSupport.findHeaderBoundary(1, new ByteArrayInputStream(sb.toString().getBytes())); assertEquals(15, bytes); }