}
public void testFilter() {
assertEquals(0, session.getSessionFilters().length);
SessionFilter first = new SessionFilterAdapter();
session.addSessionFilter(first);
assertEquals(1, session.getSessionFilters().length);
assertEquals(first, session.getSessionFilters()[0]);
SessionFilter second = new SessionFilterAdapter();
session.addSessionFilter(second);
assertEquals(2, session.getSessionFilters().length);
assertEquals(first, session.getSessionFilters()[0]);
assertEquals(second, session.getSessionFilters()[1]);
SessionFilter third = new SessionFilterAdapter();
session.addSessionFilter(1, third);
assertEquals(3, session.getSessionFilters().length);
assertEquals(first, session.getSessionFilters()[0]);
assertEquals(third, session.getSessionFilters()[1]);
assertEquals(second, session.getSessionFilters()[2]);