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

    //GIVEN
    dialogDescriptors.add(dialogDescriptor);
    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("{\"Name\":\"" + NAME + "\", \"Usage\":\"" + DialogDescriptorUsage.ALWAYS);
    order.verify(out).write("\"}");
}