// * A chain that has a trust anchor in the trust store (and is otherwise valid) should be trusted.
// */
// @Test
// public void testTrustCertSignedByCA() throws Exception
// {
// // Setup fixture
// final Collection<X509Certificate> chain = new HashSet<>();
// chain.add( (X509Certificate) trustStoreConfig.getStore().getCertificate( "valid-ca" ) ); // somewhat of a hack. Should use a distinct cert for the test.
//
// // Execute System Under Test
// final boolean result = trustStoreConfig.canTrust( chain );
//
// // Verify
// Assert.assertTrue( result );
// }
//
// /**
// * A chain that has no trust anchor in the trust store (but is otherwise valid) should not be trusted.
// */
// @Test
// public void testDontTrustCertNotSignedByCA() throws Exception
// {
// // Setup fixture
// final Collection<X509Certificate> chain = new HashSet<>();