User { public void removeApplication(ProjectApplication application) { this.applications.remove(application); } 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 removeApplication() { User user = new User("user"); user.applications.add(applicationMock); user.removeApplication(applicationMock); assertThat(user.applications).isEmpty(); }