### Question:
X509Svid { public static X509Svid parseRaw(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.DER); } 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 testParseRaw() throws URISyntaxException, IOException { Path certPath = Paths.get(toUri(certDER)); Path keyPath = Paths.get(toUri(keyDER)); byte[] certBytes = Files.readAllBytes(certPath); byte[] keyBytes = Files.readAllBytes(keyPath); try { X509Svid x509Svid = X509Svid.parseRaw(certBytes, keyBytes); assertEquals("spiffe: } catch (X509SvidException e) { fail(e); } }
@Test void testParseRawNullCertsBytesArgument() { try { X509Svid.parseRaw(null, new byte[]{}); fail(); } catch (NullPointerException e) { assertEquals("certsBytes is marked non-null but is null", e.getMessage()); } catch (X509SvidException e) { fail(); } }
@Test void testParseRawNullPrivateKeyBytesArgument() { try { X509Svid.parseRaw(new byte[]{}, null); fail(); } catch (NullPointerException e) { assertEquals("privateKeyBytes is marked non-null but is null", e.getMessage()); } catch (X509SvidException e) { fail(); } }