StandardTransferListenerSupport implements TransferListenerSupport { @Override public void fireTransferStarted(Resource resource, int requestType) { TransferEvent event = new TransferEvent(this.wagon, resource, TransferEvent.TRANSFER_STARTED, requestType); for (TransferListener transferListener : this.transferListeners) { transferListener.transferStarted(event); } } StandardTransferListenerSupport(Wagon wagon); @Override void addTransferListener(TransferListener transferListener); @Override void removeTransferListener(TransferListener transferListener); @Override boolean hasTransferListener(TransferListener transferListener); @Override void fireTransferInitiated(Resource resource, int requestType); @Override void fireTransferStarted(Resource resource, int requestType); @Override void fireTransferProgress(Resource resource, int requestType, byte[] buffer, int length); @Override void fireTransferCompleted(Resource resource, int requestType); @Override void fireTransferError(Resource resource, int requestType, Exception exception);  }
@Test public void fireTransferStarted() { this.transferListenerSupport.fireTransferStarted(this.resource, REQUEST_TYPE); verify(this.transferListener).transferStarted(eq(new TransferEvent(this.wagon, this.resource, TransferEvent.TRANSFER_STARTED, REQUEST_TYPE))); }