@Test
public void testCollectPromptsWithCondition() throws JVoiceXMLEvent {

    final Prompt prompt1 = field.appendChild(Prompt.class);
    prompt1.addText("prompt 1");
    prompt1.setCond(FALSE_CONDITION);
    final Prompt prompt2 = field.appendChild(Prompt.class);
    prompt2.addText("prompt 2");
    prompt2.setCond(TRUE_CONDITION);
    final PromptCountable countable = new FieldFormItem(context, field);
    final PromptChooser chooser = new PromptChooser(countable, context);
    final Collection<VoiceXmlNode> prompts = chooser.collect();
    Assert.assertEquals(1, prompts.size());
    final Iterator<VoiceXmlNode> iterator = prompts.iterator();
    Assert.assertEquals(prompt2, iterator.next());
}