getAssessmentTestGenerator()->generate($testPreviewRequest); $route = $this->getRouteFactory()->create($testAssessment); return new TestPreview( $this->getMapper()->map($testAssessment, $route, $testPreviewRequest->getConfig()) ); } private function getAssessmentTestGenerator(): TestPreviewerAssessmentTestGeneratorInterface { return $this->getServiceLocator()->get(TestPreviewerAssessmentTestGenerator::class); } private function getRouteFactory(): TestPreviewRouteFactoryInterface { return $this->getServiceLocator()->get(TestPreviewRouteFactory::class); } private function getMapper(): TestPreviewMapperInterface { return $this->getServiceLocator()->get(TestPreviewMapper::class); } }