### Question:
AccuRevBlameCommand extends AbstractAccuRevCommand { public BlameScmResult blame( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters ) throws ScmException { return (BlameScmResult) execute( repository, fileSet, parameters ); } AccuRevBlameCommand( ScmLogger logger ); BlameScmResult blame( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters );  }### Answer:
@Test public void testBlame() throws Exception { final File file = new File( "src/main/java/Foo.java" ); final ScmFileSet testFileSet = new ScmFileSet( basedir, file ); final Date date = new Date(); final BlameLine blameLine = new BlameLine( date, "12", "theAuthor" ); when( accurev.annotate( basedir, file ) ).thenReturn( Collections.singletonList( blameLine ) ); AccuRevBlameCommand command = new AccuRevBlameCommand( getLogger() ); CommandParameters commandParameters = new CommandParameters(); commandParameters.setString( CommandParameter.FILE, file.getPath() ); BlameScmResult result = command.blame( repo, testFileSet, commandParameters ); assertThat( result.isSuccess(), is( true ) ); assertThat( result.getLines().size(), is( 1 ) ); assertThat( ( (BlameLine) result.getLines().get( 0 ) ), is( blameLine ) ); }