void () { SnippetsRegistry snippetsRegistry = loadSnippets(HTML); Collection<TextMateSnippet> snippets = snippetsRegistry.findSnippet("div", new TextMateScope("text.html", null)); assertEquals(1, snippets.size()); TextMateSnippet snippet = snippets.iterator().next(); assertNotNull(snippet); assertEquals("div", snippet.getKey()); assertEquals(""" <div${1: id="${2:name}"}> \t${0:$TM_SELECTED_TEXT} </div>""", snippet.getContent()); assertEquals("Div", snippet.getName()); assertEquals("576036C0-A60E-11D9-ABD6-000D93C8BE28", snippet.getSettingsId()); }