package org.requirementsascode.predicate;

import java.util.Objects;

import org.requirementsascode.Step;
import org.requirementsascode.UseCaseModelRunner;

public class InsteadOf implements FlowPosition{
  private Step step;
  private After after;

  public InsteadOf(Step step) {
    Objects.requireNonNull(step);
    this.step = step;
    this.after = new After(step.getPreviousStepInFlow());
  }
	
	@Override
	public boolean test(UseCaseModelRunner useCaseModelRunner) {
		return after.test(useCaseModelRunner);
  }

  public String getStepName() {
    return step.getName();
  }
}

@@ -36,16 +36,45 @@
 icate;%0A%0A
+import java.io.Serializable;%0A
 import j
@@ -225,17 +225,104 @@
 Position
-%7B
+, Serializable%7B%0A  private static final long serialVersionUID = -3958653686352185075L;%0A  
 %0A  priva

Make InsteadOf class Serializable