private String behaviorName(Behavior behavior) {
   return behavior.getPhrase()
       + " "
       + behavior.getTypeDescriptor()
       + " ("
       + behavior.getFile().getName()
       + ")";
 }
 private void executeBehavior(
     Behavior behavior, Description behaviorDescription, RunNotifier notifier) {
   final JUnitExecutionListener listener =
       new JUnitExecutionListener(behaviorDescription, notifier);
   listenerRegistry.registerListener(listener);
   try {
     behavior.execute();
   } catch (IOException e) {
     throw new RuntimeException(e);
   } finally {
     listenerRegistry.unregisterListener(listener);
   }
 }