public Database getDb() throws MetaNotFoundException {
        // get db
        Database db = GlobalStateMgr.getCurrentState().getDb(dbId);
        if (db == null) {
            throw new MetaNotFoundException("Database " + dbId + " already has been deleted");
        }
        return db;
    }
@Test
    public void testGetDbNotExists(@Mocked GlobalStateMgr globalStateMgr) {
        LoadJob loadJob = new BrokerLoadJob();
        Deencapsulation.setField(loadJob, "dbId", 1L);
        new Expectations() {
            {
                globalStateMgr.getDb(1L);
                minTimes = 0;
                result = null;
            }
        };

        try {
            loadJob.getDb();
            Assert.fail();
        } catch (MetaNotFoundException e) {
        }
    }