RangeRefBuilder { public RangeRefBuilder absTable(final String tableName) { this.tableRefBuilder.absTable(tableName); return this; } RangeRefBuilder(final TableNameUtil tableNameUtil); RangeRefBuilder fromRow(final int r); RangeRefBuilder fromAbsRow(final int r); RangeRefBuilder fromColumn(final int c); RangeRefBuilder fromAbsColumn(final int c); RangeRefBuilder toRow(final int r); RangeRefBuilder toAbsRow(final int r); RangeRefBuilder toColumn(final int c); RangeRefBuilder toAbsColumn(final int c); RangeRefBuilder table(final String tableName); RangeRefBuilder absTable(final String tableName); RangeRefBuilder table(final Table table); RangeRefBuilder absTable(final Table table); RangeRefBuilder file(final String fileName); RangeRefBuilder file(final File file); RangeRef build();  }
@Test public void testAbsTable() { final Table table = PowerMock.createMock(Table.class); PowerMock.resetAll(); EasyMock.expect(table.getName()).andReturn("table"); PowerMock.replayAll(); final RangeRef r = 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 RangeRef expectedRef = new RangeRef(tableRef, A1, localCellRef); Assert.assertEquals(expectedRef, r); }