File source = fileManager.createTempFile();
File destDir = fileManager.createTempDir();
UnArchiver unarchiver = mockManager.createMock( UnArchiver.class );
ArchiverManager archiverManager = mockManager.createMock( ArchiverManager.class );
try
{
expect(archiverManager.getUnArchiver( source )).andReturn( unarchiver );
}
catch ( NoSuchArchiverException e )
{
fail( "Should never happen." );
}