### Question:
X509Svid { public static X509Svid parse(@NonNull final byte[] certsBytes, @NonNull final byte[] privateKeyBytes) throws X509SvidException { return createX509Svid(certsBytes, privateKeyBytes, KeyFileFormat.PEM); } 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 testParse_nullByteArray_throwsNullPointerException() throws X509SvidException { try { X509Svid.parse(null, "key".getBytes()); fail("should have thrown exception"); } catch (NullPointerException e) { assertEquals("certsBytes is marked non-null but is null", e.getMessage()); } }
@Test void testParse_nullKeyByteArray_throwsNullPointerException() throws X509SvidException { try { X509Svid.parse("cert".getBytes(), null); fail("should have thrown exception"); } catch (NullPointerException e) { assertEquals("privateKeyBytes is marked non-null but is null", e.getMessage()); } }