@@ -0,0 +1,2440 @@
+package uk.gov.register.presentation.functional;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport javax.ws.rs.core.Response;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.CoreMatchers.not;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.hasSize;%0Aimport static org.hamcrest.Matchers.isEmptyOrNullString;%0A%0Apublic class VerifiableLogResourceFunctionalTest extends FunctionalTestBase %7B%0A%0A    private final String proofIdentifier = %22merkle:sha-256%22;%0A%0A    @Before%0A    public void publishTestMessages() throws Throwable %7B%0A        mintItems(%22%7B%5C%22address%5C%22:%5C%221111%5C%22,%5C%22street%5C%22:%5C%22elvis%5C%22%7D%22,%0A                %22%7B%5C%22address%5C%22:%5C%222222%5C%22,%5C%22street%5C%22:%5C%22presley%5C%22%7D%22,%0A                %22%7B%5C%22address%5C%22:%5C%223333%5C%22,%5C%22street%5C%22:%5C%22ellis%5C%22%7D%22,%0A                %22%7B%5C%22address%5C%22:%5C%224444%5C%22,%5C%22street%5C%22:%5C%22pretzel%5C%22%7D%22,%0A                %22%7B%5C%22address%5C%22:%5C%225555%5C%22,%5C%22street%5C%22:%5C%22elfsley%5C%22%7D%22);%0A    %7D%0A%0A    @Test%0A    public void getRegisterProof() %7B%0A        Response response = getRequest(%22/proof/register/%22 + proofIdentifier);%0A%0A        assertThat(response.getStatus(), equalTo(200));%0A%0A        Map%3C?,?%3E responseData = response.readEntity(Map.class);%0A        assertThat(responseData.get(%22proof-identifier%22).toString(), equalTo(proofIdentifier));%0A        assertThat(responseData.get(%22root-hash%22).toString(), not(isEmptyOrNullString()));%0A    %7D%0A%0A    @Test%0A    public void getEntryProof() %7B%0A        Response response = getRequest(%22/proof/entry/1/5/%22 + proofIdentifier);%0A%0A        assertThat(response.getStatus(), equalTo(200));%0A%0A        Map%3C?,?%3E responseData = response.readEntity(Map.class);%0A        assertThat(responseData.get(%22proof-identifier%22).toString(), equalTo(proofIdentifier));%0A        assertThat(responseData.get(%22entry-number%22).toString(), equalTo(%221%22));%0A%0A        List%3C?%3E auditPath = (List)(responseData.get(%22merkle-audit-path%22));%0A        assertThat(auditPath, hasSize(3));%0A    %7D%0A%0A    @Test%0A    public void getConsistencyProof() %7B%0A        Response response = getRequest(%22/proof/consistency/2/5/%22 + proofIdentifier);%0A%0A        assertThat(response.getStatus(), equalTo(200));%0A%0A        Map%3C?,?%3E responseData = response.readEntity(Map.class);%0A        assertThat(responseData.get(%22proof-identifier%22).toString(), equalTo(proofIdentifier));%0A%0A        List%3C?%3E auditPath = (List)(responseData.get(%22merkle-consistency-nodes%22));%0A        assertThat(auditPath, hasSize(2));%0A    %7D%0A%7D%0A

Add functional test for Verifiable log resource