@Test
    public void testInvalidChainExpiredIntermediate() throws Exception
    {
        // Setup fixture.

        // Execute system under test.
        assertThrows(CertificateException.class, () -> systemUnderTest.checkClientTrusted( expiredIntChain, "RSA" ) );
    }
Verifies that a chain that has an intermediate certificate that is expired is rejected.
xmppserver/src/test/java/org/jivesoftware/openfire/keystore/OpenfireX509TrustManagerTest.java