NaiveTrustManager implements X509TrustManager { @Override public void checkServerTrusted( X509Certificate[] cert, String authType ) throws CertificateException { }  @Override void checkClientTrusted( X509Certificate[] cert, String authType ); @Override void checkServerTrusted( X509Certificate[] cert, String authType ); @Override X509Certificate[] getAcceptedIssuers();  }
@Test public void testCheckServerTrusted() throws Exception { naiveTrustManager.checkServerTrusted( certificates, "authtype" ); }