    @Test
    public void testDetectIntent() {

        System.out.println("detectIntent");
        String sessionId = "0";
        
        Map<String,String> intentMap = new HashMap();
        intentMap.put("DUCK", "duck");
        intentMap.put("GOOSE", "goose");
        intentMap.put("YES", RegexIntentDetector.YES);
        intentMap.put("NO", RegexIntentDetector.NO);
        
        RegexIntentDetector instance = new RegexIntentDetector(intentMap);
        Optional<IConversationIntent> result = instance.detectIntent("yes, please", "en_US", sessionId);
        assertTrue(result.isPresent());
        assertEquals("YES", result.get().getIntentId());
        
        result = instance.detectIntent("no, thanks", "en_US", sessionId);
        assertTrue(result.isPresent());
        assertEquals("NO", result.get().getIntentId());
        
        result = instance.detectIntent("I see 2 ducks", "en_US", sessionId);
        assertTrue(result.isPresent());
        assertEquals("DUCK", result.get().getIntentId());
    }