@Test
public void testGetResponseDescriptorForStubModeShouldReturnTheResponseDescriptorWhenOperationModeIsStubAndAtFirstCall() {

    //GIVEN
    Whitebox.setInternalState(underTest, "dialogDescriptorForStub", null);
    given(dialogDescriptorFactory.createDialogDescriptorForStubMode(DIALOG_DESCRIPTOR_NAME_FOR_STUB_MODE)).willReturn(dialogDescriptor);
    given(responseDescriptorDtoFactory.createResponseDescriptorDTO(DEFAULT_GROUPNAME, dialogDescriptor)).willReturn(responseDescriptorDTO);
    given(responseDescriptorDTO.getResponseDescriptor()).willReturn(responseDescriptor);
    given(responseDescriptor.getAttributes()).willReturn(responseDescriptorAttributes);
    given(template.getResource()).willReturn(resource);
    given(request.getBody()).willReturn(DEFAULT_GROUPNAME);
    //WHEN
    ResponseDescriptorDTO result = underTest.getResponseDescriptorForStubMode(request, OperationMode.STUB);
    //THEN
    verify(responseDescriptorDtoFactory).modifyResponseDescriptorDTOForStubMode(request, responseDescriptorDTO);
    Assert.assertNotNull(result);
}