@Test
public void testPopulateDisplayData() {

  CloudBigtableConfiguration config =
      createBaseBuilder()
          .withConfiguration("somekey", "somevalue")
          .withConfiguration("inaccessible", new InaccessibleValueProvider())
          .build();
  TestDisplayDataBuilder builder = new TestDisplayDataBuilder();
  config.populateDisplayData(builder);
  List<String> expected = new ArrayList<>();
  expected.add("null:projectId=my_project");
  expected.add("null:instanceId=instance");
  expected.add("null:somekey=somevalue");
  expected.add("null:google.bigtable.project.id=my_project");
  expected.add("null:google.bigtable.instance.id=instance");
  expected.add("null:inaccessible=Unavailable during pipeline construction");
  expected.add("null:bigtableClientVersion=" + BigtableVersionInfo.CLIENT_VERSION);
  MatcherAssert.assertThat(builder.itemStrings, containsInAnyOrder(expected.toArray()));
}