LocalContext { public void reset() { this.stateMachineDefinition.remove(); this.tlUniqueEventCount.remove(); this.eventNames.remove(); } LocalContext();   LocalContext(ThreadLocal<StateMachineDefinition> stateMachineDefinition, ThreadLocal<MutableInt> tlUniqueEventCount, ThreadLocal<IdentityHashMap<Event, String>> eventNames); void registerNew(String workflowIdentifier, long version, String description,String correlationId,
                            String clientElbId); void registerNewState(Long version,
                                 String name, String description,
                                 String hookIdentifier, String taskIdentifier,
                                 Long retryCount, Long timeout,
                                 List<EventDefinition> dependencySet, EventDefinition outputEvent
    ); void reset(); StateMachineDefinition getStateMachineDef(); boolean isWorkflowInterception(); void addEvents(EventData ...events); String generateEventName(Event event); EventDefinition checkExistingDefinition(final EventDefinition givenDefinition);  }
@Test public void testReset() throws Exception { localContext.registerNew("fooBar", 1, "someDescription", "someContextId", "defaultElbId"); localContext.reset(); assertThat(tlStateMachineDef.get()).isNull(); assertThat(tlMutableInteger.get()).isNull(); }