BigtableSession implements Closeable { @Deprecated @InternalApi("For internal usage only") public static BigtableInstanceClient createInstanceClient(BigtableOptions options) throws IOException, GeneralSecurityException { ManagedChannel rawAdminChannel = createNettyChannel(options.getAdminHost(), options); Channel adminChannel = ClientInterceptors.intercept(rawAdminChannel, createAdminApiInterceptors(options)); return new BigtableInstanceGrpcClient(adminChannel); } BigtableSession(BigtableOptions opts); @Deprecated @InternalApi("For internal usage only") static ManagedChannel createChannelPool(final String host, final BigtableOptions options); @Deprecated @InternalApi("For internal usage only") static ManagedChannel createChannelPool(
      final String host, final BigtableOptions options, int count); @InternalApi("For internal usage only") static ManagedChannel createNettyChannel(
      String host, BigtableOptions options, ClientInterceptor... interceptors); synchronized BigtableClusterName getClusterName(); BigtableDataClient getDataClient(); @InternalApi("For internal usage only") IBigtableDataClient getDataClientWrapper(); BulkMutation createBulkMutation(BigtableTableName tableName); @InternalApi("For internal usage only") IBulkMutation createBulkMutationWrapper(BigtableTableName tableName); BulkRead createBulkRead(BigtableTableName tableName); BigtableTableAdminClient getTableAdminClient(); @InternalApi("For internal usage only") synchronized IBigtableTableAdminClient getTableAdminClientWrapper(); BigtableInstanceClient getInstanceAdminClient(); @Deprecated @InternalApi("For internal usage only") static BigtableInstanceClient createInstanceClient(BigtableOptions options); @Override synchronized void close(); BigtableOptions getOptions(); @InternalApi("VisibleForTesting") Map<String, ClientContext> getCachedClientContexts();  }
@Test public void testCreateInstanceClient() throws Throwable { try { BigtableSession.createInstanceClient( BigtableOptions.builder() .setCredentialOptions(CredentialOptions.nullCredential()) .build()); } catch (IOException e) { if (e.getMessage().toLowerCase().contains("credentials")) { } else { throw e; } } }