### Question:
ActionFlowInterceptor extends AbstractInterceptor { void clearSession(final Map<String, Object> session) { session.put(PREVIOUS_FLOW_ACTION, null); session.put(FLOW_SCOPE_KEY, null); session.put(HIGHEST_CURRENT_ACTION_INDEX, null); session.put(SKIP_ACTIONS, null); session.put(OVERRIDE_ACTION_NAME, null); }  @SuppressWarnings("unchecked") @Override String intercept(ActionInvocation invocation); void setNextActionName(String nextActionName); void setPrevActionName(String prevActionName); void setForceFlowStepsOrder(String value); void setViewActionPostfix(String viewActionPostfix); void setViewActionMethod(String viewActionMethod); void setStepParameterName(String stepParameterName); static final Logger LOG; }### Answer:
@Test public void testClearSession() throws Exception { Assert.assertNotNull(actionFlowInterceptor); Map<String, Object> session = new HashMap<String, Object>(); session.put(TestConstants.PREVIOUS_FLOW_ACTION, "PREVIOUS_FLOW_ACTION"); session.put(TestConstants.FLOW_SCOPE_KEY, "FLOW_SCOPE_KEY"); session.put(TestConstants.HIGHEST_CURRENT_ACTION_INDEX, "HIGHEST_CURRENT_ACTION_INDEX"); session.put(TestConstants.SKIP_ACTIONS, "SKIP_ACTIONS"); session.put(TestConstants.OVERRIDE_ACTION_NAME, "OVERRIDE_ACTION_NAME"); actionFlowInterceptor.clearSession(session); Assert.assertNull(session.get(TestConstants.PREVIOUS_FLOW_ACTION)); Assert.assertNull(session.get(TestConstants.FLOW_SCOPE_KEY)); Assert.assertNull(session .get(TestConstants.HIGHEST_CURRENT_ACTION_INDEX)); Assert.assertNull(session.get(TestConstants.SKIP_ACTIONS)); Assert.assertNull(session.get(TestConstants.OVERRIDE_ACTION_NAME)); }