@Test
public void testListTablesAsync() throws Exception {

  ImmutableList<String> tableIdList =
      ImmutableList.of("test-table-1", "test-table-2", "test-table-3");
  ListTablesRequest request =
      ListTablesRequest.newBuilder().setParent(INSTANCE_NAME.toString()).build();
  ListTablesResponse.Builder builder = ListTablesResponse.newBuilder();
  builder.addTablesBuilder().setName(INSTANCE_NAME.toTableNameStr("test-table-1")).build();
  builder.addTablesBuilder().setName(INSTANCE_NAME.toTableNameStr("test-table-2")).build();
  builder.addTablesBuilder().setName(INSTANCE_NAME.toTableNameStr("test-table-3")).build();
  when(delegate.listTablesAsync(request)).thenReturn(immediateFuture(builder.build()));
  assertEquals(tableIdList, adminClientWrapper.listTablesAsync().get());
  verify(delegate).listTablesAsync(request);
}