List<File> promotedFiles = Arrays.asList( new File( "kept/file" ), new File( "promoted/file" ) );
when( accurev.promoteAll( basedir, "A commit message" ) ).thenReturn( promotedFiles );
AccuRevCheckInCommand command = new AccuRevCheckInCommand( getLogger() );
CommandParameters commandParameters = new CommandParameters();
commandParameters.setString( CommandParameter.MESSAGE, "A commit message" );
CheckInScmResult result = command.checkIn( repo, testFileSet, commandParameters );
assertThat( result.isSuccess(), is( true ) );
assertThat( result.getCheckedInFiles().size(), is( 2 ) );
assertHasScmFile( result.getCheckedInFiles(), "kept/file", ScmFileStatus.CHECKED_IN );