@Test
    public void testRssParsing() throws Exception
    {
        // Setup test fixture.
        try (final InputStream rssStream = BlogPostServlet.class.getResourceAsStream("/rss/ignite-blog.rss")) {

            // Execute system under test.
            final JSONArray result = BlogPostServlet.parseFirstEntries(rssStream, 2);

            // Verify results.
            assertEquals(2, result.length());
            assertEquals("https://discourse.igniterealtime.org/t/cve-2023-32315-openfire-vulnerability-update/93166", result.getJSONObject(0).getString("link"));
            assertEquals("CVE-2023-32315: Openfire vulnerability (update)", result.getJSONObject(0).getString("title"));

            assertEquals("https://discourse.igniterealtime.org/t/sparkweb-lives-again/93130", result.getJSONObject(1).getString("link"));
            assertEquals("SparkWeb lives again", result.getJSONObject(1).getString("title"));
        }
    }
Verifies that the code that parses RSS data for the blog posts generates expect results.
xmppserver/src/test/java/org/jivesoftware/admin/servlet/BlogPostServletTest.java