throws IOException, MetadataTransferException
{
String expectedContent = "Dies ist ein Test.";
File srcFile = TestFileUtils.createTempFile( expectedContent );
DefaultMetadata metadata = new DefaultMetadata( "test", "artId1", "1", "jar", Nature.RELEASE_OR_SNAPSHOT );
MetadataUpload up = new MetadataUpload( metadata, srcFile );
FileRepositoryWorker worker = new FileRepositoryWorker( up, repository, session );
worker.setFileProcessor( TestFileProcessor.INSTANCE );
worker.run();
if ( up.getException() != null )