message: Test case to reproduce java issue 5507
  This test case shows part of the java issue
  There are some other issues related with the java issue, but this one
  can be isolated.
diff: @@ -472,6 +472,27 @@ TEST_CASE("list") {
  advance_and_notify(*r);
  REQUIRE_INDICES(change.deletions, 5);
  }
  +
  + // Test case to reproduce part of Java issue https://github.com/realm/realm-java/issues/5507
  + SECTION("changes are sent in initial notification after on_change called (another token has been added and removed)") {
  + auto token = lst.add_notification_callback([&](CollectionChangeSet c, std::exception_ptr) {
  + REQUIRE(false);
  + });
  + token = {}; // The problem doesn't happen without removing token.
  +
  + r2->begin_transaction();
  + r2_lv->remove(5);
  + r2->commit_transaction();
  +
  + coordinator.on_change(); // The problem doesn't happen without this line.
  +
  + token = lst.add_notification_callback([&](CollectionChangeSet c, std::exception_ptr) {
  + change = c;
  + });
  +
  + advance_and_notify(*r);
  + REQUIRE_INDICES(change.deletions, 5);
  + }
  }
  SECTION("sorted add_notification_block()") {
  