TableHelper { public TableCellWalker getCell(final Table table, final int rowIndex, final int colIndex) throws IOException { final TableCellWalker walker = table.getWalker(); walker.toRow(rowIndex); walker.to(colIndex); return walker; } TableHelper(final PositionUtil positionUtil); static TableHelper create(); @Deprecated void setCellMerge(final Table table, final int rowIndex, final int colIndex,
                             final int rowMerge, final int columnMerge); void setCellMerge(final Table table, final String address, final int rowMerge,
                             final int columnMerge); void setCellValue(final Table table, final int rowIndex, final int colIndex,
                             final CellValue value, final TableCellStyle ts); void setCellValue(final Table table, final int rowIndex, final int colIndex,
                             final CellValue value); void setCellValue(final Table table, final String address, final CellValue value,
                             final TableCellStyle ts); void setCellValue(final Table table, final String address, final CellValue value); TableCellWalker getCell(final Table table, final int rowIndex, final int colIndex); TableCellWalker getCell(final Table table, final String address);  }
@Test public final void getCell() throws IOException, ParseException { PowerMock.resetAll(); EasyMock.expect(this.table.getWalker()).andReturn(this.walker); this.walker.toRow(1); this.walker.to(2); PowerMock.replayAll(); final TableCellWalker w = this.tableHelper.getCell(this.table, "C2"); PowerMock.verifyAll(); Assert.assertEquals(this.walker, w); }