### Question:
X509CertificateWikiStore extends AbstractX509WikiStore implements CertificateStore { @Override public Collection<CertifiedPublicKey> getAllCertificates(StoreReference store) throws CertificateStoreException { return new X509CertificateQuery(resolveStore(store), getCertificateFactory(), getEncoder(), getQueryManager(), getSerializer()).getCertificates(); }  @Override void store(StoreReference store, CertifiedPublicKey certificate); @Override CertificateProvider getCertificateProvider(StoreReference store); @Override Collection<CertifiedPublicKey> getAllCertificates(StoreReference store); static final String CERTIFICATECLASS_SPACE; static final String CERTIFICATECLASS_NAME; static final String CERTIFICATECLASS_FULLNAME; static final LocalDocumentReference CERTIFICATECLASS; static final String CERTIFICATECLASS_PROP_ISSUER; static final String CERTIFICATECLASS_PROP_SERIAL; static final String CERTIFICATECLASS_PROP_SUBJECT; static final String CERTIFICATECLASS_PROP_KEYID; static final String CERTIFICATECLASS_PROP_CERTIFICATE; }### Answer:
@Test public void testRetrievingAllCertificatesFromDocument() throws Exception { CertifiedPublicKey[] certs = mockMultiCertsQuery(); assertThat(this.store.getAllCertificates(DOC_STORE_REF), contains(certs)); verify(this.query).bindValue(BIND_STORE, FULLNAME); }
@Test public void testRetrievingAllCertificatesFromSpace() throws Exception { CertifiedPublicKey[] certs = mockMultiCertsQuery(); assertThat(this.store.getAllCertificates(SPACE_STORE_REF), contains(certs)); verify(this.query).bindValue(BIND_STORE, SPACE); }