void () { pushTwoStates(); myHistory.back(); assertTrue(myHistory.isBackAvailable()); assertTrue(myHistory.isForwardAvailable()); MyState newState = new MyState(false, "newState"); makeNavigationChange(newState); assertTrue(myHistory.isBackAvailable()); assertFalse(myHistory.isForwardAvailable()); myHistory.back(); assertSame(myState2, myEditorState); myHistory.back(); assertSame(myState1, myEditorState); assertFalse(myHistory.isBackAvailable()); }