public function testLoadGraph()
{
$sm = $this->getMock('Finite\\StateMachine\\StateMachine');
$graphName = 'foobar';
$loader = new ArrayLoader(array('class' => 'Stateful1', 'graph' => $graphName), $this->callbackHandler);
$sm->expects($this->once())->method('setGraph')->with($graphName);
$loader->load($sm);
}