IsNotLikeMatcher extends AbstractSimpleStringMatcher { @Override protected boolean matches(String actual, String argument) { return (actual == null && argument != null) || (actual != null && argument == null) || (actual != null && !actual.equalsIgnoreCase(argument)); }    }
@Test public void testWhenBothSubjectAndReferenceAreNull() { assertThat(new IsNotLikeMatcher().matches(null, null), is(false)); }
@Test public void testWhenSubjectIsNullAndReferenceIsNotNull() { assertThat(new IsNotLikeMatcher().matches(null, ""), is(true)); }
@Test public void testWhenReferenceIsNullAndSubjectIsNotNull() { assertThat(new IsNotLikeMatcher().matches("", null), is(true)); }
@Test public void testWhenTheyAreNotAlike() { assertThat(new IsNotLikeMatcher().matches("Hello World", "World"), is(true)); }
@Test public void testWhenTheyAreAlike() { assertThat(new IsNotLikeMatcher().matches("Hello world!", "hello WORLD!"), is(false)); }