### Question:
LibraryPerspective { @OnClose public void onClose() { projectContextChangeEvent.fire(new WorkspaceProjectContextChangeEvent()); } LibraryPerspective(); @Inject  LibraryPerspective(final LibraryPlaces libraryPlaces,
                              final Event<WorkspaceProjectContextChangeEvent> projectContextChangeEvent); @Perspective PerspectiveDefinition buildPerspective(); @OnStartup void onStartup(final PlaceRequest placeRequest); void perspectiveChangeEvent(@Observes PerspectiveChange event); @OnClose void onClose(); PanelDefinition getRootPanel();  }### Answer:
@Test public void libraryResetsContextOnCloseTest() { perspective.onClose(); verify(projectContextChangeEvent).fire(new WorkspaceProjectContextChangeEvent()); }