public function setUp()
{
parent::setUp();
$workspaceRepository = $this->objectManager->get(WorkspaceRepository::class);
$workspaceRepository->add(new Workspace('live'));
$this->persistenceManager->persistAll();
$this->contextFactory = $this->objectManager->get(ContextFactoryInterface::class);
$this->context = $this->contextFactory->create(array('workspaceName' => 'live'));
}