@Test
public void getSessionAttributeListeners() {
ServletContext context = mock(ServletContext.class);
HttpSessionAttributeListener listener1 = mock(HttpSessionAttributeListener.class);
HttpSessionAttributeListener listener2 = mock(HttpSessionAttributeListener.class);
List<ManagedListener> list = Arrays.asList(new ManagedListener(new ListenerInfo(HttpSessionAttributeListener.class, new ImmediateInstanceFactory<>(listener1)), false), new ManagedListener(new ListenerInfo(HttpSessionAttributeListener.class, new ImmediateInstanceFactory<>(listener2)), false));
ApplicationListeners listeners = new ApplicationListeners(list, context);
when(this.deployment.getApplicationListeners()).thenReturn(listeners);
Iterable<HttpSessionAttributeListener> result = this.context.getSessionAttributeListeners();