    @Test
    public void getUsersByProviderConfigIdTest() {

        ProviderUserEntity providerUserEntity = new ProviderUserEntity(projectOwnerEmail, true, 1L);

        ProviderProjectRepository providerProjectRepository = Mockito.mock(ProviderProjectRepository.class);
        ProviderUserRepository providerUserRepository = Mockito.mock(ProviderUserRepository.class);

        Mockito.when(providerUserRepository.findByProviderConfigId(Mockito.any())).thenReturn(List.of(providerUserEntity));

        DefaultProviderDataAccessor providerDataAccessor = new DefaultProviderDataAccessor(providerProjectRepository, null, providerUserRepository, null);
        List<ProviderUserModel> providerUserModelList = providerDataAccessor.getUsersByProviderConfigId(1L);

        assertEquals(1, providerUserModelList.size());
        ProviderUserModel providerUserModel = providerUserModelList.get(0);
        assertEquals(projectOwnerEmail, providerUserModel.getEmailAddress());
        assertTrue(providerUserModel.getOptOut());
    }