final String port = Integer.toString(NetUtils.findUnusedPort());
final Map<String, String> properties = ImmutableMap.of("hive-metastore.port", port,
"thrift.port", port);
final Injector inj = new Bootstrap(new DummyHiveMetastoreServerModule(),
new HiveMetastoreClientModule(),
new ThriftClientModule(),
new ThriftCodecModule())
.setRequiredConfigurationProperties(properties)
.strictConfig()