@Test
public void removeApplication() {

    // given
    User user = new User("user");
    user.applications.add(applicationMock);
    // when
    user.removeApplication(applicationMock);
    // then
    assertThat(user.applications).isEmpty();
}