perspective.getBuilders(eq(clientFactory), resettableEventBusArgumentCaptor.capture())
).thenReturn(
Collections.<NavigationItemBuilder>emptyList()
);
presenter.onChangePerspective(new ChangePerspectiveEvent(perspective));
resettableEventBusArgumentCaptor.getValue().addHandler(RefreshAssetEditorEvent.TYPE, new RefreshAssetEditorEvent.Handler() {
public void onRefreshAsset(RefreshAssetEditorEvent refreshAssetEditorEvent) {
//Nothing here, just setting one up se we can see if this gets cleared.
}
});
presenter.onChangePerspective(new ChangePerspectiveEvent(perspective));
verify(handlerRegistration).removeHandler();
}