@Test
public void onDownload() {

    String DOWNLOAD_URL = "DOWNLOAD_URL";
    Supplier<Path> pathSupplierMock = mock(Supplier.class);
    doReturn(DOWNLOAD_URL).when(presenterSpy).getFileDownloadURL(eq(pathSupplierMock));
    presenterSpy.onDownload(pathSupplierMock);
    verify(presenterSpy, times(1)).getFileDownloadURL(eq(pathSupplierMock));
    verify(presenterSpy, times(1)).open(eq(DOWNLOAD_URL));
}