    @Test
    public void shouldAddAclProviderWithRightACL() {

        when(zookeeperProperties.hasAcl()).thenReturn(true);
        when(zookeeperProperties.getAcl()).thenReturn("sasl:myclient@EXAMPLE.COM");
        when(zookeeperProperties.hasAuth()).thenReturn(false);
        CuratorFactory curatorFactory = new CuratorFactory(configuration) {
            @Override
            protected void initializeCuratorFramework() {
            }
        };
        curatorFactory.enhanceBuilderWithSecurityParameters(zookeeperProperties, builder);
        verify(builder).aclProvider(argThat(new ArgumentMatcher<ACLProvider>() {
            @Override
            public boolean matches(Object o) {
                ACLProvider aclProvider = (ACLProvider) o;
                ACL acl = aclProvider.getDefaultAcl().get(0);
                return acl.getId().getId().equals("myclient@EXAMPLE.COM")
                        && acl.getId().getScheme().equals("sasl");
            }
        }));
    }