IntentData { public static Builder builder() { return new Builder(); } IntentData(Boolean confirmationRequired,
                      Set<PromptVariation> confirmations,
                      DialogIntentPrompt prompts,
                      Set<String> samples,
                      Map<String, IntentSlotData> slots); static IntentData combine(IntentData a, IntentData b); static Codec<IntentData> codec(); static IntentData empty(); static Resource.Builder resource(); static Builder builder(); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("slots") Map<String, IntentSlotData> getSlots(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("prompts") DialogIntentPrompt getPrompts(); @JsonIgnore boolean isEmpty(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test(expected = IllegalArgumentException.class) public void testConfirmationPromptConflict() { IntentData.builder() .withPrompts(DialogIntentPrompt.builder() .withConfirmation("test") .build()) .withPrompts(DialogIntentPrompt.builder() .withConfirmation("different") .build()); }
@Test public void testConfirmationPromptNoConflict() { IntentData.builder() .withPrompts(DialogIntentPrompt.builder() .withConfirmation("no conflict") .build()) .withPrompts(DialogIntentPrompt.builder() .withConfirmation("no conflict") .build()); }
@Test public void testNullConfirmationPrompt() { IntentData.builder() .withPrompts(DialogIntentPrompt.builder() .withConfirmation("no conflict") .build()) .withPrompts(null); }