AbstractPhaseScope phaseScopeA = mock(AbstractPhaseScope.class);
when(phaseScopeA.getSolverScope()).thenReturn(solverScope);
valueSelector.phaseStarted(phaseScopeA);
AbstractStepScope stepScopeA1 = mock(AbstractStepScope.class);
when(stepScopeA1.getPhaseScope()).thenReturn(phaseScopeA);
valueSelector.stepStarted(stepScopeA1);
assertAllCodesOfValueSelectorForEntity(valueSelector, entity, "v1", "v2", "v3");
valueSelector.stepEnded(stepScopeA1);
AbstractStepScope stepScopeA2 = mock(AbstractStepScope.class);
when(stepScopeA2.getPhaseScope()).thenReturn(phaseScopeA);
valueSelector.stepStarted(stepScopeA2);
assertAllCodesOfValueSelectorForEntity(valueSelector, entity, "v1", "v2", "v3");
valueSelector.stepEnded(stepScopeA2);
valueSelector.phaseEnded(phaseScopeA);
AbstractPhaseScope phaseScopeB = mock(AbstractPhaseScope.class);
when(phaseScopeB.getSolverScope()).thenReturn(solverScope);
valueSelector.phaseStarted(phaseScopeB);
AbstractStepScope stepScopeB1 = mock(AbstractStepScope.class);
when(stepScopeB1.getPhaseScope()).thenReturn(phaseScopeB);
valueSelector.stepStarted(stepScopeB1);
assertAllCodesOfValueSelectorForEntity(valueSelector, entity, "v1", "v2", "v3");
valueSelector.stepEnded(stepScopeB1);
AbstractStepScope stepScopeB2 = mock(AbstractStepScope.class);
when(stepScopeB2.getPhaseScope()).thenReturn(phaseScopeB);
valueSelector.stepStarted(stepScopeB2);
assertAllCodesOfValueSelectorForEntity(valueSelector, entity, "v1", "v2", "v3");
valueSelector.stepEnded(stepScopeB2);
AbstractStepScope stepScopeB3 = mock(AbstractStepScope.class);
when(stepScopeB3.getPhaseScope()).thenReturn(phaseScopeB);
valueSelector.stepStarted(stepScopeB3);
assertAllCodesOfValueSelectorForEntity(valueSelector, entity, "v1", "v2", "v3");
valueSelector.stepEnded(stepScopeB3);
valueSelector.phaseEnded(phaseScopeB);