@Test
public void testOnUploadSuccess() {

    final ObservablePath path = mock(ObservablePath.class);
    doReturn(null).when(versionRecordManager).getCurrentPath();
    doReturn(path).when(versionRecordManager).getPathToLatest();
    presenter.onUploadSuccess();
    verify(versionRecordManager).getPathToLatest();
    verify(versionRecordManager, never()).getCurrentPath();
    verify(versionRecordManager).reloadVersions(path);
}