DefaultStellarStatefulExecutor implements StellarStatefulExecutor, Serializable { @Override public void clearState() { this.state = new HashMap<>(); } DefaultStellarStatefulExecutor();  DefaultStellarStatefulExecutor(FunctionResolver functionResolver, Context context);  DefaultStellarStatefulExecutor(Map<String, Object> initialState); @Override Map<String, Object> getState(); @Override void assign(String variable, String expression, Map<String, Object> transientState); @Override void assign(String variable, Object value); @Override T execute(String expression, Map<String, Object> state, Class<T> clazz); @Override void clearState(); @Override void setContext(Context context); void setFunctionResolver(FunctionResolver functionResolver);  }
@Test public void testClearState() { executor.assign("two", "2", message); executor.clearState(); assertThat(executor.getState().containsKey("two"), equalTo(false)); }