@Test
  public void testCreateAndFindPackage() throws Exception {
    objectStore.createDatabase(new DatabaseBuilder()
            .setName(DB1)
            .setDescription("description")
            .setLocation("locationurl")
            .build(conf));
    AddPackageRequest pkg = new AddPackageRequest("hive", DB1, "pkg1", "user1", "src", "src");
    objectStore.addPackage(pkg);
    Package found = objectStore.findPackage(new GetPackageRequest("hive", DB1, "pkg1"));
    Assert.assertEquals(pkg.getBody(), found.getBody());
    Assert.assertEquals(pkg.getHeader(), found.getHeader());
    Assert.assertEquals(pkg.getCatName(), found.getCatName());
    Assert.assertEquals(pkg.getDbName(), found.getDbName());
    Assert.assertEquals(pkg.getOwnerName(), found.getOwnerName());
    Assert.assertEquals(pkg.getPackageName(), found.getPackageName());
  }
Helper method for setting and checking the SSL configuration parameters.
@param useSSL whether or not SSL is enabled
@param trustStorePath truststore path, corresponding to the value for {@link MetastoreConf.ConfVars#DBACCESS_SSL_TRUSTSTORE_PATH}
@param trustStorePassword truststore password, corresponding to the value for {@link MetastoreConf.ConfVars#DBACCESS_SSL_TRUSTSTORE_PASSWORD}
@param trustStoreType truststore type, corresponding to the value for {@link MetastoreConf.ConfVars#DBACCESS_SSL_TRUSTSTORE_TYPE}
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestObjectStore.java