@Test
public void testDoGetWhenThereIsSequenceDescriptorAndDialogDescriptorAndInterceptorDescriptorInStubDescriptor() throws ServletException, IOException {

    //GIVEN
    dialogDescriptors.add(dialogDescriptor);
    sequenceDescriptors.add(sequenceDescriptor);
    interceptorDescriptors.add(interceptorDescriptor);
    given(interceptorDescriptor.getName()).willReturn("InterceptorDescriptor1");
    given(sequenceDescriptor.getName()).willReturn("SequenceDescriptor1");
    given(dialogDescriptor.getAttributes().getName()).willReturn(NAME);
    given(dialogDescriptor.getAttributes().getUsage()).willReturn(DialogDescriptorUsage.ALWAYS);
    //WHEN
    underTest.doGet(request, response);
    //THEN
    InOrder order = Mockito.inOrder(out);
    order.verify(out).write("\"dialogDescriptors\":[");
    order.verify(out).write("{\"Name\":\"" + NAME + "\", \"Usage\":\"" + DialogDescriptorUsage.ALWAYS);
    order.verify(out).write("\"}");
    order.verify(out).write("], \"groupname\": \"test\", \"active\": \"true\"");
    order.verify(out).write(",");
    order.verify(out).write("\"sequenceDescriptors\":[");
    order.verify(out).write("{\"Name\": \"SequenceDescriptor1\"}");
    order.verify(out).write("]");
    order.verify(out).write(",");
    order.verify(out).write("\"interceptorDescriptors\":[");
    order.verify(out).write("{\"Name\": \"InterceptorDescriptor1\"}");
}