AbstractSolverPhaseScope phaseScopeA = mock(AbstractSolverPhaseScope.class);
when(phaseScopeA.getSolverScope()).thenReturn(solverScope);
entitySelector.phaseStarted(phaseScopeA);
AbstractStepScope stepScopeA1 = mock(AbstractStepScope.class);
when(stepScopeA1.getPhaseScope()).thenReturn(phaseScopeA);
entitySelector.stepStarted(stepScopeA1);
runOriginalAsserts(entitySelector, "e1", "e2", "e3");
entitySelector.stepEnded(stepScopeA1);
AbstractStepScope stepScopeA2 = mock(AbstractStepScope.class);
when(stepScopeA2.getPhaseScope()).thenReturn(phaseScopeA);
entitySelector.stepStarted(stepScopeA2);
runOriginalAsserts(entitySelector, "e1", "e2", "e3");
entitySelector.stepEnded(stepScopeA2);
entitySelector.phaseEnded(phaseScopeA);
AbstractSolverPhaseScope phaseScopeB = mock(AbstractSolverPhaseScope.class);
when(phaseScopeB.getSolverScope()).thenReturn(solverScope);
entitySelector.phaseStarted(phaseScopeB);
AbstractStepScope stepScopeB1 = mock(AbstractStepScope.class);
when(stepScopeB1.getPhaseScope()).thenReturn(phaseScopeB);
entitySelector.stepStarted(stepScopeB1);
runOriginalAsserts(entitySelector, "e1", "e2", "e3");
entitySelector.stepEnded(stepScopeB1);
AbstractStepScope stepScopeB2 = mock(AbstractStepScope.class);
when(stepScopeB2.getPhaseScope()).thenReturn(phaseScopeB);
entitySelector.stepStarted(stepScopeB2);
runOriginalAsserts(entitySelector, "e1", "e2", "e3");
entitySelector.stepEnded(stepScopeB2);
AbstractStepScope stepScopeB3 = mock(AbstractStepScope.class);
when(stepScopeB3.getPhaseScope()).thenReturn(phaseScopeB);
entitySelector.stepStarted(stepScopeB3);
runOriginalAsserts(entitySelector, "e1", "e2", "e3");
entitySelector.stepEnded(stepScopeB3);
entitySelector.phaseEnded(phaseScopeB);