}
@Test
public void testChainResponseFilters()
{
final MessageCountFilter filter1 = new MessageCountFilter();
final MessageCountFilter filter2 = new MessageCountFilter();
final MessageCountFilter filter3 = new MessageCountFilter();
final FilterChain fc = FilterChains.create(filter1, filter2, filter3);
fireRpcResponse(fc);
assertMessageCounts(0, 1, 0, filter1);
assertMessageCounts(0, 1, 0, filter2);
assertMessageCounts(0, 1, 0, filter3);
filter1.reset();
filter2.reset();
filter3.reset();
fireRestResponse(fc);
assertMessageCounts(0, 1, 0, filter1);
assertMessageCounts(0, 1, 0, filter2);
assertMessageCounts(0, 1, 0, filter3);