QueryMetadataInterface metadata = exampleLdap();
RuntimeMetadata rm = new RuntimeMetadataImpl(metadata);
LDAPExecutionFactory config = mock(LDAPExecutionFactory.class);
IQueryToLdapSearchParser searchParser = new IQueryToLdapSearchParser(config);
Select query = (Select)getCommand(queryString, metadata);
LDAPSearchDetails searchDetails = searchParser.translateSQLQueryToLDAPSearch(query);
return searchDetails;
}