    @Test
    public void returnsNotFoundIfUserNotFoundWhenAssociateConstituencyToUser() throws Exception {

        User admin = user().withRole(Role.ADMIN).build();
        User user = user().withConstituencies(new HashSet<>()).build();
        Constituency constituency = constituency().build();
        given(constituencyRepository.findOne(constituency.getId())).willReturn(constituency);
        given(userRepository.findOne(user.getId())).willReturn(null);

        Try<User> userTry = underTest.associateToUser(admin, constituency.getId(), user.getId());

        assertThat(userTry.isSuccess(), is(false));
        assertThat(userTry.getFailure(), is(instanceOf(NotFoundFailure.class)));
    }