{
createFooJava( file );
ScmRepository scmRepository = getScmRepository();
scmRepository.getProviderRepository().setUser( username );
AddScmResult addResult = getScmManager().add( scmRepository, new ScmFileSet( getWorkingCopy(), "**/*.java" ) );
assertResultIsSuccess( addResult );
CheckInScmResult result =
getScmManager().checkIn( scmRepository, new ScmFileSet( getWorkingCopy(), "**/Foo.java" ), "Commit message" );