private boolean hasInterestsWithResultPolicy(final @NotNull String regionName, boolean isDurable,
      final @NotNull InterestResultPolicy interestResultPolicy,
      final @NotNull InterestType interestType, boolean receiveUpdatesAsInvalidates) {
    RegionInterestEntry regionInterestEntry =
        readRegionInterests(regionName, interestType, isDurable, receiveUpdatesAsInvalidates);
    return regionInterestEntry != null && regionInterestEntry.getInterests().values().stream()
        .anyMatch(actualInterestResultPolicy -> actualInterestResultPolicy
            .getOrdinal() == interestResultPolicy.getOrdinal());
  }
Check the RegionInterestEntries with receiveUpdatesAsInvalidates both true and false

@return boolean based on the presence of the selected InterestResultPolicy
geode-core/src/main/java/org/apache/geode/cache/client/internal/RegisterInterestTracker.java