public void testIdempotentReceiverRouter() throws Exception
{
MessageProcessor router = lookupInboundRouterFromService("IdempotentReceiverRouter");
assertTrue(router instanceof IdempotentMessageFilter);
IdempotentMessageFilter filter = (IdempotentMessageFilter)router;
assertEquals("#[message:id]-#[message:correlationId]", filter.getIdExpression());
assertNotNull(filter.getStore());
assertTrue(filter.getStore() instanceof TextFileObjectStore);
TextFileObjectStore store = (TextFileObjectStore)filter.getStore();
assertEquals(-1, store.getEntryTTL());
assertEquals(1000, store.getExpirationInterval());
assertEquals(10000000, store.getMaxEntries());
assertEquals("foo", store.getDirectory());
assertNotNull(store.getName());