### Question:
ContainsMatcher extends AbstractMatcher { @Override public boolean isSatisfiedBy(String currentValue) { return CalculateService.contains(getPattern(), getValue(), currentValue); } ContainsMatcher(String value);  ContainsMatcher(Pattern value); @Override MatcherType getMatcherType(); @Override boolean isSatisfiedBy(String currentValue);  }### Answer:
@Test public void shouldContainString() { ContainsMatcher matcher = new ContainsMatcher("me value"); assertThat(matcher.isSatisfiedBy("some value")).isTrue(); }
@Test public void shouldNotContainString() { ContainsMatcher matcher = new ContainsMatcher("some value"); assertThat(matcher.isSatisfiedBy("non-matching")).isFalse(); }
@Test public void shouldContainPattern() { ContainsMatcher matcher = new ContainsMatcher(Pattern.compile("me value.*")); assertThat(matcher.isSatisfiedBy("some value")).isTrue(); }
@Test public void shouldNotContainPattern() { ContainsMatcher matcher = new ContainsMatcher(Pattern.compile("value.*")); assertThat(matcher.isSatisfiedBy("non-matching")).isFalse(); }