TableRef { @Override public String toString() { final StringBuilder sb = new StringBuilder(); try { this.write(sb); } catch (final IOException e) { throw new AssertionError(e); } return sb.toString(); } TableRef(final TableNameUtil tableNameUtil, final String filename,
                    final String tableName, final int status); static TableRefBuilder builder(final TableNameUtil tableNameUtil); void write(final Appendable appendable); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static final int ABSOLUTE_TABLE; }
@Test public void testTableName() { Assert.assertEquals("table", new TableRef(this.tableNameUtil, null, "table", 0).toString()); }
@Test public void testAbsTableName() { Assert.assertEquals("$table", new TableRef(this.tableNameUtil, null, "table", 4).toString()); }
@Test public void testTableNameQuote() { Assert.assertEquals("$'tab''le'", new TableRef(this.tableNameUtil, null, "tab'le", 4).toString()); }
@Test public void testFilenameAndTableName() { Assert.assertEquals("'fname'#table", new TableRef(this.tableNameUtil, "fname", "table", 0).toString()); }
@Test public void testFilenameAndAbsTableName() { Assert.assertEquals("'fname'#$table", new TableRef(this.tableNameUtil, "fname", "table", 4).toString()); }