MyReducer implements redux.api.Reducer<Integer> { @Override public Integer reduce(Integer state, Object action) { return action instanceof Action ? reduce(state, (Action) action) : state; }  @Override Integer reduce(Integer state, Object action);  }
@Test public void ignore_unknown_actions() { assertThat(reducer.reduce(0, "unknown action"), is(0)); }
@Test public void increment() { assertThat(reducer.reduce(0, Action.INCREMENT), is(1)); }
@Test public void decrement() { assertThat(reducer.reduce(0, Action.DECREMENT), is(-1)); }