public function subTypesOfTheManagedTypeCanBeRemoved()
{
$this->superEntityRepository = $this->objectManager->get(Fixtures\SuperEntityRepository::class);
$subEntity = new Fixtures\SubEntity();
$subEntity->setContent('this is the sub entity');
$this->superEntityRepository->add($subEntity);
$this->persistenceManager->persistAll();
$subEntity = $this->superEntityRepository->findOneByContent('this is the sub entity');
$this->superEntityRepository->remove($subEntity);
$this->persistenceManager->persistAll();
$subEntity = $this->superEntityRepository->findOneByContent('this is the sub entity');
$this->assertNull($subEntity);
}