@@ -0,0 +1,686 @@
+package com.taobao.common.store.journal;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * @author %3Ca href=%22mailto:zhong.lunfu@gmail.com%22%3Ezhongl%3Ca%3E%0A */%0Apublic class OpItemTest %7B%0A    @Test%0A    public void equals() throws Exception %7B%0A        byte op = OpItem.OP_ADD;%0A        byte%5B%5D key = new byte%5B%5D%7B0%7D;%0A        int fileno = 1;%0A        long offset = 0;%0A        int length = 512;%0A%0A        OpItem item1 = new OpItem(op, key, fileno, offset, length);%0A        OpItem item2 = new OpItem(op, key, fileno, offset, length);%0A%0A        assertThat(item1.hashCode(), is(item2.hashCode()));%0A        assertThat(item1, is(item2));%0A    %7D%0A%7D%0A

refactor OpItem.