// The item proxy may be asked if it has a model object associated
// with it.
itemProxyMock.expects.getModelObject().returns(null).any();
// Should cause an event to be sent to listeners on the object.
InsertedIntoListEvent event = new InsertedIntoListEvent(
listProxy, 0, 0, true);
listenerMock.expects.addedToList(event);
// Should also cause an event to be sent to the parent proxy.
parentProxyMock.expects.fireEvent(event);