TriviaExpression implements Matcher, ParsingExpression { public TriviaKind getTriviaKind() { return triviaKind; } TriviaExpression(TriviaKind triviaKind, ParsingExpression subExpression); TriviaKind getTriviaKind(); @Override Instruction[] compile(CompilationHandler compiler); @Override String toString();  }
@Test public void should_implement_Matcher() { TriviaExpression expression = new TriviaExpression(TriviaKind.COMMENT, mock(ParsingExpression.class)); assertThat(expression.getTriviaKind()).isSameAs(TriviaKind.COMMENT); }