@AfterEach
    public void tearDown() throws Exception
    {
        // Attempt to delete any left-overs from the test.
        if ( trustStore != null)
        {
            trustStore = null;
            Files.deleteIfExists( Paths.get( location ) );
        }

        systemUnderTest = 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/OpenfireX509TrustManagerTest.java