package json;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;

public class TestHelper
{
    public static <T> void equalityAndHashcodeChecker(T same1, T same2, T different)
    {
        assertThat("Objects should not be equal to null", same1, is(notNullValue()));
        assertThat("Object of different types should not be equal", same1, is(not(new Object())));
        assertThat("An object should be equal to itself", same1, is(same1));
        assertThat("Equal objects should be equal", same1, is(same2));
        assertThat("Equal objects should have equal hashcodes", same1.hashCode(), is(same2.hashCode()));
        assertThat("Unequal objects should not be equal", same1, is(not(different)));
        assertThat("Unequal objects should not have the same hashcodes", same1.hashCode(), is(not(different.hashCode())));
    }
}

@@ -101,62 +101,8 @@
 ot;%0A
-import static org.hamcrest.CoreMatchers.notNullValue;%0A
 impo
@@ -330,32 +330,26 @@
 l%22, 
+!
 same1
-, is(notNullValue()
+.equals(null
 ));%0A

Fix to test helper