package uk.gov.register.core;

import org.junit.Test;
import java.time.Instant;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

public class EntryTest {
    @Test
    public void getTimestampAsISOFormat_returnsTheFormattedTimestamp() {
        Entry entry = new Entry(123, "abc", Instant.ofEpochSecond(1470403440));
        assertThat(entry.getTimestampAsISOFormat(), equalTo("2016-08-05T13:24:00Z"));
    }

    @Test
    public void getItemHash_returnsSha256AsItemHash() {
        Entry entry = new Entry(123, "abc", Instant.ofEpochSecond(1470403440));
        assertThat(entry.getItemHash(), equalTo("sha-256:abc"));
    }
}

@@ -443,16 +443,230 @@
 %0A    %7D%0A%0A
+    @Test%0A    public void getSha256hex_returnsTheSha256HexOfItem() %7B%0A        Entry entry = new Entry(123, %22abc%22, Instant.ofEpochSecond(1470403440));%0A        assertThat(entry.getSha256hex(), equalTo(%22abc%22));%0A    %7D%0A%0A
     @Tes

Add additional Entry test to show distinction between sha and itemhash