@After
    public void tearDown() throws Exception
    {
        if ( trustStore != null)
        {
            trustStore = null;
        }
    }
Returns the last element from the provided array.

@param chain An array (cannot be null).
@return The last element of the provided array.
xmppserver/src/test/java/org/jivesoftware/openfire/keystore/CheckChainTrustedTest.java