/**
  * @param NodeName $nodeName
  * @return ProcessingNode
  */
 public function getNode(NodeName $nodeName)
 {
     //@TODO: Connect node list with configuration to assert node name
     return ProcessingNode::initializeAs($nodeName);
 }
 /**
  * @test
  */
 function it_is_equal_to_a_node_with_the_same_name()
 {
     $processingNode1 = ProcessingNode::initializeAs(NodeName::fromString('localhost'));
     $processingNode2 = ProcessingNode::initializeAs(NodeName::fromString('localhost'));
     $this->assertTrue($processingNode1->sameNodeAs($processingNode2));
 }
 /**
  * Create service
  *
  * @param ServiceLocatorInterface $serviceLocator
  * @return mixed
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     /** @var $processingConfig ProcessingConfig */
     $processingConfig = $serviceLocator->get('processing_config');
     return ProcessingNode::initializeAs(NodeName::fromString($processingConfig->getNodeName()));
 }