@Test
public void testCustomIntentsLanguageModel() throws IOException {

    SkillModel skill = SkillModel.builder()
        .withInvocationName(Locales.en_US, "test")
        .addModel(Model.builder()
            .intent(TestIntent.class)
            .build())
        .build();
    LanguageModel actual = underTest.render(skill, Locales.en_US).getLanguageModel();
    LanguageModel expected = LanguageModel.builder()
        .withInvocationName("test")
        .withIntents(Collections.singletonList(
            makeIntent("TestIntent", Arrays.asList(
                makeIntentSlot("customSlot", "TestCustom"),
                makeIntentSlot("dateSlot", "AMAZON.DATE"),
                makeIntentSlot("dayOfWeekSlot", "AMAZON.DayOfWeek"),
                makeIntentSlot("durationSlot", "AMAZON.DURATION"),
                makeIntentSlot("listTypeSlot", "AMAZON.Actor"),
                makeIntentSlot("literalSlot", "AMAZON.LITERAL"),
                makeIntentSlot("numberSlot", "AMAZON.NUMBER"),
                makeIntentSlot("timeSlot", "AMAZON.TIME")
            ), Collections.singletonList("test_en_US"))))
        .withTypes(Collections.singletonList(
            makeSlotType("TestCustom", Arrays.asList(
                makeSlotTypeValue("A", Collections.singletonList("test_A_en_US")),
                makeSlotTypeValue("B", Collections.singletonList("test_B_en_US"))))))
        .build();
    assertEquals(WRITER.writeValueAsString(expected), WRITER.writeValueAsString(actual));
}