resultList.add( mockResult2 );
resultList.add( mockResult2 );
resultList.add( mockResult1 );
resultList.add( mockResult2 );
WsdlTestRunContext context = Mockito.mock(WsdlTestRunContext.class);
AbstractTestCaseRunner runner = Mockito.mock(AbstractTestCaseRunner.class);
Mockito.when( context.getTestRunner() ).thenReturn( runner );
Mockito.when( runner.getResults()).thenReturn( resultList );
Mockito.when( context.getCurrentStep()).thenReturn(mockStep1);
Assert.assertEquals( "2", provider.getValue( context ));
Mockito.when( context.getCurrentStep()).thenReturn(mockStep2);
Assert.assertEquals( "3", provider.getValue( context ));
}