void (String source, String pattern, int expectedOccurrences, int expectedWithDefaultEquivalence) { findAndCheck(source, pattern, expectedOccurrences); try { EquivalenceDescriptorProvider.ourUseDefaultEquivalence = true; findAndCheck(source, pattern, expectedWithDefaultEquivalence); } finally { EquivalenceDescriptorProvider.ourUseDefaultEquivalence = false; } }