@Test
public void testUpdateResourceHolderShouldSetResources() {

    //GIVEN
    List<ConditionChecker> conditionCheckers = new ArrayList<>();
    List<ResponseFormatter> templateFormatters = new ArrayList<>();
    Map<String, byte[]> templates = new HashMap<>();
    List<RequestInterceptor> requestInterceptors = new ArrayList<>();
    List<ResponseInterceptor> responseInterceptors = new ArrayList<>();
    List<SequenceHandler> sequenceHandlers = new ArrayList<>();
    given(temporaryStubResourceHolder.getConditionCheckers()).willReturn(conditionCheckers);
    given(temporaryStubResourceHolder.getResponseFormatters()).willReturn(templateFormatters);
    given(temporaryStubResourceHolder.getTemplates()).willReturn(templates);
    given(temporaryStubResourceHolder.getRequestInterceptors()).willReturn(requestInterceptors);
    given(temporaryStubResourceHolder.getResponseInterceptors()).willReturn(responseInterceptors);
    given(temporaryStubResourceHolder.getSequenceHandlers()).willReturn(sequenceHandlers);
    //WHEN
    underTest.updateResourceHolder();
    //THEN
    verify(stubResourceHolder).setConditionChekers(conditionCheckers);
    verify(stubResourceHolder).setResponseFormatters(templateFormatters);
    verify(stubResourceHolder).setTemplates(templates);
    verify(stubResourceHolder).setRequestInterceptors(requestInterceptors);
    verify(stubResourceHolder).setResponseInterceptors(responseInterceptors);
    verify(stubResourceHolder).setSequenceHandlers(sequenceHandlers);
}