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);  }
@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(); }