ImmutableMatchedOperator implements MatchedOperator { @Override public String getMatchedToken() { return matchedToken; } ImmutableMatchedOperator(Operator original, String matchedToken); @Override String getName(); @Override int getOperands(); @Override Matcher getMatcher(); @Override String[] getTokens(); @Override String getMatchedToken();  }
@Test public void testMatchedToken() { assertThat(matchedOperator.getMatchedToken(), is("a")); }