### Question:
StringSetMatcher extends ElementMatcher.Junction.AbstractBase<String> { @Override public boolean matches(String target) { return values.contains(target); } StringSetMatcher(Set<String> values); @Override boolean matches(String target); @Override String toString();  }### Answer:
@Test public void testMatch() throws Exception { assertThat(new StringSetMatcher(values).matches(matching), is(true)); }
@Test public void testNoMatch() throws Exception { assertThat(new StringSetMatcher(values).matches(nonMatching), is(false)); }