### Question:
X509Svid { public X509Certificate[] getChainArray() { return chain.toArray(new X509Certificate[0]); } private  X509Svid(
            final SpiffeId spiffeId,
            final List<X509Certificate> chain,
            final PrivateKey privateKey); X509Certificate getLeaf(); List<X509Certificate> getChain(); static X509Svid load(@NonNull final Path certsFilePath, @NonNull final Path privateKeyFilePath); static X509Svid parse(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes); static X509Svid parseRaw(@NonNull final byte[] certsBytes,
                                    @NonNull final byte[] privateKeyBytes); X509Certificate[] getChainArray();  }### Answer:
@Test void testGetChainArray() throws URISyntaxException, X509SvidException { Path certPath = Paths.get(toUri(certMultiple)); Path keyPath = Paths.get(toUri(keyECDSA)); X509Svid x509Svid = X509Svid.load(certPath, keyPath); X509Certificate[] x509CertificatesArray = x509Svid.getChainArray(); assertEquals(x509Svid.getChain().get(0), x509CertificatesArray[0]); assertEquals(x509Svid.getChain().get(1), x509CertificatesArray[1]); }