    @Test
    public void shouldNotSetDetachedForNewEntries() {

        //given
        //TestAppConfig

        //when
        memberService.syncMembers();

        //then
        Optional<MembershipEntryEntity> entry = membershipRepository.findFirstByMemberIdAndGroupIdOrderByDateDesc("member1", "group1");
        assertThat(entry).isPresent();
        assertThat(entry.get().getEvent()).isEqualTo(MembershipEntryEntity.Event.ATTACHED);
        assertThat(entry.get().getDate()).isEqualTo(LocalDate.now());
    }