### Question:
DefaultContinuumScm implements ContinuumScm { public ChangeLogScmResult changeLog( ContinuumScmConfiguration configuration ) throws ScmException { ScmVersion scmVersion = getScmVersion( configuration ); Date startDate = null; File workingDirectory = configuration.getWorkingDirectory(); ScmRepository repository = getScmRepository( configuration ); ChangeLogScmResult result; ScmFileSet fileSet = new ScmFileSet( workingDirectory ); if ( scmVersion == null || StringUtils.isBlank( scmVersion.getName() ) ) { startDate = getScmStartDate( configuration ); result = scmManager.changeLog( repository, fileSet, startDate, null, 0, null, null ); } else { result = scmManager.changeLog( repository, fileSet, scmVersion, scmVersion ); } return result; }  CheckOutScmResult checkout( ContinuumScmConfiguration configuration ); UpdateScmResult update( ContinuumScmConfiguration configuration ); ChangeLogScmResult changeLog( ContinuumScmConfiguration configuration ); ScmManager getScmManager(); void setScmManager( ScmManager scmManager );  }### Answer:
@Test public void testChangeLogWithScmVersion() throws Exception { config.setTag( "1.0-SNAPSHOT" ); continuumScm.changeLog( config ); verify( scmManager ).changeLog( any( ScmRepository.class ), any( ScmFileSet.class ), any( ScmVersion.class ), any( ScmVersion.class ) ); }
@Test public void testChangeLogWithNoScmVersion() throws Exception { config.setTag( "" ); continuumScm.changeLog( config ); verify( scmManager ).changeLog( any( ScmRepository.class ), any( ScmFileSet.class ), any( Date.class ), isNull( Date.class ), eq( 0 ), isNull( ScmBranch.class ), isNull( String.class ) ); }