### Question:
InMemoryCleanup { public void cancelFlowWithoutDbUpdate(String flowId) { String flowChainId = runningFlows.getFlowChainId(flowId); if (flowChainId != null) { flowChains.removeFullFlowChain(flowChainId); } runningFlows.remove(flowId); }  void cancelEveryFlowWithoutDbUpdate(); void cancelFlowWithoutDbUpdate(String flowId);  }### Answer:
@Test void cancelFlowWithoutDbUpdate() { underTest.cancelFlowWithoutDbUpdate(FLOW_ID); verify(runningFlows, times(1)).remove(FLOW_ID); }