### Question:
StringMatcher extends ElementMatcher.Junction.AbstractBase<String> { @Override public String toString() { return mode.getDescription() + '(' + value + ')'; } StringMatcher(String value, Mode mode); boolean matches(String target); @Override String toString();  }### Answer:
@Test public void testStringRepresentation() throws Exception { assertThat(new StringMatcher(FOO, mode).toString(), startsWith(mode.getDescription())); }