I am testing an API rest using the Citrus framework and the features: Cucumber, DSL, Spring, HTTP. I am with a problem that for each Scenario I need to create a new object of "DefaultTestRunner" to execute my scenarios(like this answer, How to integration Citrus framework and BBD Cucumber). I would like to know if there is some alternative that I could implement that is not necessary to copy the @Before and every scenario create a new citrus instance, for each java class feature.
@Before
public void setUp(Scenario scenario) {
citrus = Citrus.newInstance();
runner = new DefaultTestRunner(citrus.getApplicationContext(), citrus.createTestContext());
}