protected function createTestInstance()
{
$subject = new \stdClass();
$subject->canBeClosed = false;
$initialState = new State('new');
$transition = $this->getTransitionForTriggerTest();
$initialState->addTransition($transition);
$transition->getTargetState()->addTransition($this->getTransitionForCheckTest());
$process = new Process('testProcess', $initialState);
return new Statemachine($subject, $process);
}