void () { MavenRepositoryInfo localRepo = new MavenRepositoryInfo(LOCAL_REPOSITORY_ID, "/home/user/.m2/repository", IndexKind.LOCAL); localDiff = MavenIndices.getLocalDiff(localRepo, myContext, null); Assert.assertNotNull(localDiff.newIndices); Assert.assertEquals(localRepo.getUrl(), localDiff.newIndices.getRepositoryPathOrUrl()); Assert.assertNull(localDiff.oldIndices); localRepo = new MavenRepositoryInfo(LOCAL_REPOSITORY_ID, "/home/user/.m3/repository", IndexKind.LOCAL); MavenIndex currentLocalIndex = localDiff.newIndices; localDiff = MavenIndices.getLocalDiff(localRepo, myContext, currentLocalIndex); Assert.assertNotNull(localDiff.newIndices); Assert.assertEquals(localRepo.getUrl(), localDiff.newIndices.getRepositoryPathOrUrl()); Assert.assertSame(currentLocalIndex, localDiff.oldIndices); }