DialogDescriptorFactory { public DialogDescriptor createDialogDescriptorForStubMode(final String dialogDescriptorName) { DialogDescriptorAttributes attributes = new DialogDescriptorAttributes(dialogDescriptorName, DialogDescriptorUsage.ALWAYS); ConditionDescriptor conditionDescriptor = conditionDescriptorFactory.createConditionDescriptorForStubMode(); ResponseDescriptor responseDescriptor = responseDescriptorFactory.createResponseDescriptorForStubMode(); return new DialogDescriptor(attributes, conditionDescriptor, responseDescriptor); }  DialogDescriptor createDialogDescriptorForStubMode(final String dialogDescriptorName);  }
@Test public void createDialogDescriptorForStubMode() { final String dialogDescriptorName = "ddname"; underTest.createDialogDescriptorForStubMode(dialogDescriptorName); verify(responseDescriptorFactory).createResponseDescriptorForStubMode(); verify(conditionDescriptorFactory).createConditionDescriptorForStubMode(); }