RoutingInfo info = map.get(routingKey);
List<Route> routes = info.getWhere();
assertEquals("There should be only one sink", 1, routes.size());
Route route = routes.get(0);
assertEquals("sink1", route.getSink());
Map<String, Map<String, String>> obj = Maps.newHashMap();
obj.put("foo", ImmutableMap.of("bar", "tESt"));
MessageContainer container = Mockito.mock(MessageContainer.class);
Mockito.when(container.getEntity(Map.class)).thenReturn(obj);
assertEquals(true, route.getFilter().doFilter(container));
}