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