@Test public void getCollectionName_notAllowListedCommandAndCollectionField() {

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