when( accurev.history( "myStream", "36", "42", 0, false, false ) ).thenReturn( Arrays.asList( promoteOne,
promoteTwo ) );
AccuRevChangeLogCommand command = new AccuRevChangeLogCommand( getLogger() );
CommandParameters commandParameters = new CommandParameters();
commandParameters.setString( CommandParameter.MESSAGE, "A commit message" );
commandParameters.setDate( CommandParameter.START_DATE, dateFrom );
commandParameters.setDate( CommandParameter.END_DATE, dateTo );
ChangeLogScmResult result = command.changelog( repo, testFileSet, commandParameters );
assertThat( result.isSuccess(), is( true ) );
List<ChangeSet> changeSets = result.getChangeLog().getChangeSets();
assertThat( changeSets.size(), is( 3 ) );