UIComponent component = new UIOutput();
ComponentSystemEventListener listener = new MyPartialStateHolderListener();
//This case happens when @ListenerFor is attached on the component class
EventListenerWrapper wrapper = new EventListenerWrapper(component, listener);
Object state = wrapper.saveState(facesContext);
//In this case state should not be null, because state should be saved fully
assertNotNull(state);
EventListenerWrapper wrapper2 = new EventListenerWrapper();