protected FetchOp fetch() {
FetchOp remoteRepoFetch = spy(localGeogig.geogig.command(FetchOp.class));
doReturn(Optional.of(remoteRepo)).when(remoteRepoFetch).getRemoteRepo(any(Remote.class),
any(DeduplicationService.class));
LsRemote lsRemote = lsremote();
doReturn(lsRemote).when(remoteRepoFetch).command(eq(LsRemote.class));
return remoteRepoFetch;
}