MockControl control = MockControl.createControl( TransferListener.class );
TransferListener listener = (TransferListener) control.getMock();
listener.transferInitiated( null );
control.setMatcher( MockControl.ALWAYS_MATCHER );
TransferEvent transferEvent =
new TransferEvent( wagon, new Resource( "resource" ), exception, TransferEvent.REQUEST_GET );
listener.transferError( transferEvent );
control.replay();
wagon.connect( repository );
wagon.addTransferListener( listener );