public function testThrowsExcpetionIfCurrentStateDidNotHaveTriggeredEvent()
{
$statemachine = $this->createTestInstance();
$this->setExpectedException('Metabor\\Statemachine\\Exception\\WrongEventForStateException');
$statemachine->triggerEvent('foo');
}