ScriptChunkTest: Add an EqualsVerifier test for ScriptChunk.
@@ -27,6 +27,7 @@ import static org.junit.Assert.assertTrue;
import java.util.Random;
+import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;
import com.google.common.primitives.Bytes;
@@ -35,6 +36,13 @@ public class ScriptChunkTest {
private static final Random RANDOM = new Random(42);
+ @Test
+ public void equalsContract() {
+ EqualsVerifier.forClass(ScriptChunk.class)
+ .usingGetClass()
+ .verify();
+ }
+
@Test
public void testShortestPossibleDataPush() {
assertTrue("empty push", new ScriptBuilder().data(new byte[0]).build().getChunks().get(0)
