title: jbehave - How to execute code before each example of a scenario
body: <p>When using Serenity with JBehave, my step definition adds information provided through @Given and @When into an internal state class, which is validated in @Then methods.</p>
  
  <p>The state class needs to be reinitialized for each test, that is before each scenario without example and before each example of a scenario with examples.</p>
  
  <p>How can I achieve that?</p>
  
  <p>I found a JIRA ticket requesting @BeforeExample (which would solve my problem) at <a href="http://jbehave.github.io/Old_JBehave_Issues/548/" rel="nofollow noreferrer">http://jbehave.github.io/Old_JBehave_Issues/548/</a>. However, using @BeforeScenario clears only before each scenario, but not before each example.</p>
  
  <p>Clearing state in each @Given would not work in the cases where a scenario has multiple @Givens (using Given... And....).</p>