@Test
    public void testParseFullChain() throws Exception
    {
        // Setup fixture.
        try ( final InputStream stream = getClass().getResourceAsStream( "/fullchain.pem" ) )
        {
            // Execute system under test.
            final Collection<X509Certificate> result = CertificateManager.parseCertificates( stream );

            // Verify result.
            assertNotNull( result );
            assertEquals( 2, result.size() );
        }
    }
Asserts that {@link CertificateManager#parseCertificates(InputStream)} can parse a PEM file that contains a
certificate chain
xmppserver/src/test/java/org/jivesoftware/util/CertificateManagerTest.java