@Test public void removeBookmark() { Project project = mock(Project.class); User user = new User("user"); user.bookmarks.add(project); user.removeBookmark(project); assertThat(user.bookmarks).isEmpty(); }
public void removeBookmark(Project project) { this.bookmarks.remove(project); }
User { public void removeBookmark(Project project) { this.bookmarks.remove(project); } }
User { public void removeBookmark(Project project) { this.bookmarks.remove(project); } User(String userId); protected  User(); }
User { public void removeBookmark(Project project) { this.bookmarks.remove(project); } User(String userId); protected  User(); void addBookmark(Project project); void removeBookmark(Project project); void addApplication(ProjectApplication application); void removeApplication(ProjectApplication application); Optional<AccessInterval> getLatestAccessInterval(); void addAccessInterval(AccessInterval interval); void removeAccessInterval(AccessInterval interval); }
User { public void removeBookmark(Project project) { this.bookmarks.remove(project); } User(String userId); protected  User(); void addBookmark(Project project); void removeBookmark(Project project); void addApplication(ProjectApplication application); void removeApplication(ProjectApplication application); Optional<AccessInterval> getLatestAccessInterval(); void addAccessInterval(AccessInterval interval); void removeAccessInterval(AccessInterval interval);  }