public function testMaxRelatedEntities()
 {
     $this->assertNull($this->context->getMaxRelatedEntities());
     $this->context->setMaxRelatedEntities(123);
     $this->assertEquals(123, $this->context->getMaxRelatedEntities());
     $this->assertEquals(123, $this->context->get(ConfigContext::MAX_RELATED_ENTITIES));
 }
 /**
  * {@inheritdoc}
  */
 public function configureContext(ConfigContext $context)
 {
     $context->setMaxRelatedEntities($this->maxRelatedEntities);
 }