CaseOverviewPerspective { @OnStartup public void onStartup(final PlaceRequest place) { overview.getParameters().clear(); for (final String param : place.getParameterNames()) { overview.addParameter(param, place.getParameter(param, null)); } }  @Perspective PerspectiveDefinition getPerspective(); @OnStartup void onStartup(final PlaceRequest place); static final String PERSPECTIVE_ID; }
@Test public void testOnStartup() { final PlaceRequest placeRequest = new DefaultPlaceRequest(); perspective.onStartup(placeRequest); assertTrue(perspective.getOverview().getParameters().isEmpty()); placeRequest.addParameter("test", "value"); perspective.onStartup(placeRequest); assertEquals(1, perspective.getOverview().getParameters().size()); }