    @Test
    public void testRouting() {

        Agent agent1 = mock(Agent.class);
        MultiValuedMap params1 = new MultiValuedMap();
        params1.addString(KeywordRouter.KEYWORDS, "time");
        params1.addString(KeywordRouter.KEYWORDS, "date");
        Agent agent2 = mock(Agent.class);
        MultiValuedMap params2 = new MultiValuedMap();
        params2.addString(KeywordRouter.KEYWORDS, "twitter");

        RouterAgentConfig config = RouterAgentConfig.create();
        config.add(agent1, params1);
        config.add(agent2, params2);
        Router router = new KeywordRouter(config);

        Agent agents[] = router.route(new Request("What time is it"));
        Agent expected[] = new Agent[]{agent1};
        assertArrayEquals(expected, agents);

        Agent agents2[] = router.route(new Request("Post this on twitter"));
        Agent expected2[] = new Agent[]{agent2};
        assertArrayEquals(expected2, agents2);
    }