public String getHiveMetastoreURIs() {
        return metastoreURIs;
    }
@Test
    public void testFromStmt(@Mocked GlobalStateMgr globalStateMgr) throws UserException {
        String name = "hive0";
        String type = "hive";
        String metastoreURIs = "thrift://127.0.0.1:9380";
        Map<String, String> properties = Maps.newHashMap();
        properties.put("type", type);
        properties.put("hive.metastore.uris", metastoreURIs);
        CreateResourceStmt stmt = new CreateResourceStmt(true, name, properties);
        // drop repo
        Analyzer analyzer = new Analyzer(Analyzer.AnalyzerVisitor.getInstance());
        new Expectations() {
            {
                globalStateMgr.getAnalyzer();
                result = analyzer;
            }
        };

        Analyzer.analyze(stmt, connectContext);
        HiveResource resource = (HiveResource) Resource.fromStmt(stmt);
        Assert.assertEquals("hive0", resource.getName());
        Assert.assertEquals(type, resource.getType().name().toLowerCase());
        Assert.assertEquals(metastoreURIs, resource.getHiveMetastoreURIs());
    }