### Question:
NameAnonymizer { public long anonymizeProjectPath(@NonNull String projectPath) { Preconditions.checkArgument(projectPath.startsWith(":"), "Project path should be absolute"); try { return mProjects.get(projectPath).mId; } catch (ExecutionException e) { return 0; } } NameAnonymizer(); long anonymizeProjectPath(@NonNull String projectPath); long anonymizeVariant(@NonNull String projectName, @Nullable String variantName);  }### Answer:
@Test public void anonymizeProjectName() { NameAnonymizer nameAnonymizer = new NameAnonymizer(); assertEquals( nameAnonymizer.anonymizeProjectPath(":a"), nameAnonymizer.anonymizeProjectPath(":a")); assertEquals( nameAnonymizer.anonymizeProjectPath(":b"), nameAnonymizer.anonymizeProjectPath(":b")); assertEquals( nameAnonymizer.anonymizeProjectPath(":c"), nameAnonymizer.anonymizeProjectPath(":c")); assertNotEquals( nameAnonymizer.anonymizeProjectPath(":a"), nameAnonymizer.anonymizeProjectPath(":b")); assertNotEquals( nameAnonymizer.anonymizeProjectPath(":a"), nameAnonymizer.anonymizeProjectPath(":c")); assertNotEquals( nameAnonymizer.anonymizeProjectPath(":b"), nameAnonymizer.anonymizeProjectPath(":c")); }