@Test
public void isOperator() {

  when(expr.isAction()).thenReturn(true).thenReturn(false);
  assertTrue(test.isAction());
  assertFalse(test.isAction());
  verify(expr, times(2)).isAction();
  verifyNoMoreInteractions(expr);
}