StubResourceHolderUpdater { public void clearTemporaryResourceHolder() { temporaryStubResourceHolder.clearConditionCheckers(); temporaryStubResourceHolder.clearResponseFormatters(); temporaryStubResourceHolder.clearTemplates(); temporaryStubResourceHolder.clearRequestInterceptors(); temporaryStubResourceHolder.clearResponseInterceptors(); temporaryStubResourceHolder.clearSequenceHandlers(); }  void updateResourceHolder(); void clearTemporaryResourceHolder(); void addDocumentToResourceHolder(final String groupName, final Document document); void addDocumentToResourceHolder(final String groupName, final JSONObject jsonObject); void initializeTemporaryResourceHolder();  }
@Test public void testClearTemporaryResourceHolderShouldCallTemporaryResourceHolder() { underTest.clearTemporaryResourceHolder(); verify(temporaryStubResourceHolder).clearConditionCheckers(); verify(temporaryStubResourceHolder).clearResponseFormatters(); verify(temporaryStubResourceHolder).clearTemplates(); verify(temporaryStubResourceHolder).clearRequestInterceptors(); verify(temporaryStubResourceHolder).clearResponseInterceptors(); verify(temporaryStubResourceHolder).clearSequenceHandlers(); }