In the removal test, removeDocuments("Document 1") should trigger a voteForRemovals("Document 1") that returns a positive value (the test returns 20) and then trigger collaborator.documentRemoved("Document 1"), with removeDocuments returning true.
File structure (place under /app/)
/app/Collaborator.java
public interface Collaborator { ... }
/app/ClassTested.java
public class ClassTested { ... }
Notes
Do not use any package declarations (default package) to align with how tests reference the classes in the provided code.
Ensure methods are public and signatures match exactly as described so the provided tests can compile and run against them.