### Question:
AuthoringPerspective { @Perspective public PerspectiveDefinition buildPerspective() { final PerspectiveDefinition perspective = new PerspectiveDefinitionImpl(perspectiveConfiguration.getPerspectivePanelType().getName()); perspective.setName(PERSPECTIVE_NAME); perspective.getRoot().addPart(new PartDefinitionImpl(kogitoScreen.getPlaceRequest())); return perspective; }  @Perspective PerspectiveDefinition buildPerspective(); static final String PERSPECTIVE_ID; static final String PERSPECTIVE_NAME; }### Answer:
@Test public void buildTestingPerspective() { final AuthoringPerspective perspective = new AuthoringPerspective(); perspective.perspectiveConfiguration = new TestingPerspectiveConfiguration(); perspective.kogitoScreen = getKogitoScreen(TESTING_REQUEST); final PerspectiveDefinition perspectiveDefinition = perspective.buildPerspective(); assertNotNull(perspectiveDefinition); assertEquals(MultiListWorkbenchPanelPresenter.class.getName(), perspectiveDefinition.getRoot().getPanelType()); assertEquals(AuthoringPerspective.PERSPECTIVE_NAME, perspectiveDefinition.getName()); final Set<PartDefinition> parts = perspectiveDefinition.getRoot().getParts(); assertEquals(1, parts.size()); final PartDefinition part = parts.iterator().next(); assertNotNull(part.getPlace()); assertTrue(part.getPlace() instanceof DefaultPlaceRequest); assertEquals(TESTING_IDENTIFIER, part.getPlace().getIdentifier()); }
@Test public void buildRuntimePerspective() { final AuthoringPerspective perspective = new AuthoringPerspective(); perspective.perspectiveConfiguration = new PerspectiveConfiguration(); perspective.kogitoScreen = getKogitoScreen(RUNNING_REQUEST); final PerspectiveDefinition perspectiveDefinition = perspective.buildPerspective(); assertNotNull(perspectiveDefinition); assertEquals(StaticWorkbenchPanelPresenter.class.getName(), perspectiveDefinition.getRoot().getPanelType()); assertEquals(AuthoringPerspective.PERSPECTIVE_NAME, perspectiveDefinition.getName()); final Set<PartDefinition> parts = perspectiveDefinition.getRoot().getParts(); assertEquals(1, parts.size()); final PartDefinition part = parts.iterator().next(); assertNotNull(part.getPlace()); assertTrue(part.getPlace() instanceof DefaultPlaceRequest); assertEquals(RUNNING_IDENTIFIER, part.getPlace().getIdentifier()); }