ContainingMatcher extends AbstractSimpleStringMatcher { @Override protected boolean matches(String actual, String argument) { return actual != null && argument != null && actual.toLowerCase().contains(argument.toLowerCase()); }    }
@Test public void testMatchingWhenActualIsNull() { assertThat(new ContainingMatcher().matches(null, ""), is(false)); }
@Test public void testMatchingWhenParameterIsNull() { assertThat(new ContainingMatcher().matches("", null), is(false)); }
@Test public void testMatchingWhenParameterDoesNotContainActual() { assertThat(new ContainingMatcher().matches("xyz", "abc"), is(false)); }
@Test public void testMatchingWhenParameterContainsActual() { assertThat(new ContainingMatcher().matches("HelloWorld", "owo"), is(true)); }