@Test
        public void testBalancingAnglBrackets() {
            if (HTMLInputFilter.ALWAYS_MAKE_TAGS) {
                verifyTest("<img src=\"foo\"", "<img src=\"foo\" />");
                verifyTest("i>", "");
                verifyTest("<img src=\"foo\"/", "<img src=\"foo\" />");
                verifyTest(">", "");
                verifyTest("foo<b", "foo");
                verifyTest("b>foo", "<b>foo</b>");
                verifyTest("><b", "");
                verifyTest("b><", "");
                verifyTest("><b>", "");
            } else {
                verifyTest("<img src=\"foo\"", "&lt;img src=\"foo\"");
                verifyTest("b>", "b&gt;");
                verifyTest("<img src=\"foo\"/", "&lt;img src=\"foo\"/");
                verifyTest(">", "&gt;");
                verifyTest("foo<b", "foo&lt;b");
                verifyTest("b>foo", "b&gt;foo");
                verifyTest("><b", "&gt;&lt;b");
                verifyTest("b><", "b&gt;&lt;");
                verifyTest("><b>", "&gt;");
            }
        }