@Test
public void testGetResponseDescriptorForStubModeShouldReturnTheResponseDescriptorWhenOperationModeIsStub() {

    //GIVEN
    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);
}