@Test public void getCollectionName_allowListedCommandAndCollectionField() {

  BsonDocument command = new BsonDocument(Arrays.asList(
    new BsonElement("collection", new BsonString("coll")),
    new BsonElement("find", new BsonString("bar"))
  ));
  assertThat(listener.getCollectionName(command, "find")).isEqualTo("bar"); // command wins
}