void () { PreferencesRegistry preferencesRegistry = loadPreferences(TestUtil.PREFERENCES_TEST_BUNDLE); List<Preferences> preferences = preferencesRegistry.getPreferences(TestUtil.scopeFromString("text.html source.php string.quoted.double.php")); assertEquals(2, preferences.size()); assertEquals(newHashSet(new TextMateAutoClosingPair("(", ")", null)), preferences.get(0).getSmartTypingPairs()); assertEquals(newHashSet(new TextMateBracePair("[", "]")), preferences.get(0).getHighlightingPairs()); assertEquals(newHashSet(new TextMateAutoClosingPair("\"", "\"", null)), preferences.get(1).getSmartTypingPairs()); assertEquals(newHashSet(new TextMateBracePair("`", "`")), preferences.get(1).getHighlightingPairs()); }