/**
* The route cache should be empty at the beginning
*/
assertTrue(routeCacheMap.isEmpty());
Exchange fooOutEx = new Exchange("queue:foo.out");
sess.addClient(clientConfig);
Vector<Exchange> destList = new Vector<Exchange>();
destList.add(new Exchange("bar.in"));
RouteFarm.getInstance().getRouteTable().put(fooOutEx.getName(), destList);
updateRoute.invoke(sess, new Object[] {});
assertEquals("queue:bar.in", routeCacheMap.get(fooOutEx).get(0).toString());
/**
* Update the routing table and invoke updateRoute before the cache
* expires, and the cache should remain the same
*/
destList.add(new Exchange("log.in"));
updateRoute.invoke(sess, new Object[] {});
assertEquals("queue:bar.in", routeCacheMap.get(fooOutEx).get(0).toString());
assertEquals(1, routeCacheMap.get(fooOutEx).size());
/**