public function testRemoveRouteParameters()
 {
     $flow = $this->getFlowWithMockedMethods(array('getName'));
     $actualParameters = $this->util->removeRouteParameters(array('key' => 'value', 'instance' => 'xyz', 'step' => 2), $flow);
     $this->assertEquals(array('key' => 'value'), $actualParameters);
 }
 /**
  * Removes route parameters for dynamic step navigation.
  * @param array $parameters Current route parameters.
  * @param FormFlow $flow The flow involved.
  * @return array Route parameters without instance and step parameter.
  */
 public function removeDynamicStepNavigationParameters(array $parameters, FormFlow $flow)
 {
     return $this->formFlowUtil->removeRouteParameters($parameters, $flow);
 }