CellRefBuilder { public CellRefBuilder absTable(final String tableName) { this.tableRefBuilder.absTable(tableName); return this; } CellRefBuilder(final TableNameUtil tableNameUtil); CellRefBuilder row(final int r); CellRefBuilder absRow(final int r); CellRefBuilder column(final int c); CellRefBuilder absColumn(final int c); CellRefBuilder table(final String tableName); CellRefBuilder absTable(final String tableName); CellRefBuilder table(final Table table); CellRefBuilder absTable(final Table table); CellRefBuilder file(final String fileName); CellRefBuilder file(final File file); CellRef build();  }
@Test public void testAbsTable() { final Table table = PowerMock.createMock(Table.class); PowerMock.resetAll(); EasyMock.expect(table.getName()).andReturn("table"); PowerMock.replayAll(); final CellRef c = this.builder.absTable(table).build(); PowerMock.verifyAll(); final TableRef tableRef = new TableRef(this.tableNameUtil, null, "table", 4); final LocalCellRef localCellRef = new LocalCellRef(0, 0, 0); final CellRef expectedRef = new CellRef(tableRef, localCellRef); Assert.assertEquals(expectedRef, c); }