addToWorkingTree( getWorkingCopy(), new File( "src/main/java/org" ), repository );
// src/main/java/org/Foo.java
addToWorkingTree( getWorkingCopy(), new File( "src/main/java/org/Foo.java" ), repository );
ScmManager scmManager = getScmManager();
Date lastUpdate = new Date( System.currentTimeMillis() - 1000000 );
commit( getWorkingCopy(), repository );
Thread.sleep( 5000 );
// ----------------------------------------------------------------------
// Update the project
// ----------------------------------------------------------------------
UpdateScmResult result = scmManager.update( repository, new ScmFileSet( getUpdatingCopy() ), lastUpdate );
assertNotNull( "The command returned a null result.", result );
assertResultIsSuccess( result );