EmptyCertificateValidator implements CertificateValidator { @Override public void validate(Service service, X509Certificate certificate) throws PeppolSecurityException { }  @Override void validate(Service service, X509Certificate certificate); static final CertificateValidator INSTANCE; }
@Test public void simple() throws Exception { Assert.assertNotNull(EmptyCertificateValidator.INSTANCE); EmptyCertificateValidator.INSTANCE.validate(null, null); EmptyCertificateValidator.INSTANCE.validate(null, Mockito.mock(X509Certificate.class)); }