//causing a stack overflow exception.
@Test
public void testSessionListenerStopNotificationWithReadAttribute() {
final boolean[] stopped = new boolean[1];
final String[] value = new String[1];
SessionListener listener = new SessionListenerAdapter() {
public void onStop(Session session) {
stopped[0] = true;
value[0] = (String)session.getAttribute("foo");
}
};