@Nullable
    public synchronized Table getTable(long dbId, long tableId) {
        RecycleTableInfo tableInfo = idToTableInfo.row(dbId).get(tableId);
        return tableInfo != null ? tableInfo.table : null;
    }
@Test
    public void testGetTable() {
        CatalogRecycleBin bin = new CatalogRecycleBin();
        Table table = new Table(1L, "tbl", Table.TableType.HIVE, Lists.newArrayList());
        bin.recycleTable(11L, table, true);
        Table table2 = new Table(2L, "tbl", Table.TableType.HIVE, Lists.newArrayList());
        bin.recycleTable(11L, table2, true);

        Assert.assertFalse(bin.isTableRecoverable(11L, 1L));
        Assert.assertNotNull(bin.getTable(11L, 1L));
        Assert.assertTrue(bin.isTableRecoverable(11L, 2L));
        Assert.assertNotNull(bin.getTable(11L, 2L));

        List<Table> tables = bin.getTables(11L);
        Assert.assertEquals(2, tables.size());
    }