public Optional<ConnectorMetadata> getOptionalMetadata(String catalogName) {
        Optional<String> queryId = getOptionalQueryID();
        return getOptionalMetadata(queryId, catalogName);
    }
@Test
    public void testGetOptionalMetadata() {
        MetadataMgr metadataMgr = GlobalStateMgr.getCurrentState().getMetadataMgr();
        Optional<ConnectorMetadata> metadata = metadataMgr.getOptionalMetadata("hive_catalog");
        Assert.assertTrue(metadata.isPresent());
        metadata = metadataMgr.getOptionalMetadata("hive_catalog_not_exist");
        Assert.assertFalse(metadata.isPresent());
    }