public function testAddsStatesToGraph()
{
$state = new State('first');
$stateCollection = new StateCollection();
$stateCollection->addState($state);
$secondState = new State('second');
$state->addTransition(new Transition($secondState));
$graph = new Graph();
$builder = new GraphBuilder($graph);
$builder->addStateCollection($stateCollection);
$this->assertTrue($graph->hasVertex('first'));
$this->assertTrue($graph->hasVertex('second'));
}