public String convertToSQL92(List<String> tokens) {
        StringBuilder selector = new StringBuilder();

        boolean isFirstToken = true;
        for (Iterator i = tokens.iterator(); i.hasNext(); ) {
            String token = i.next().toString();
            if (token.matches("^[^=]*='.*[\\*\\?].*'$")) {
                token = token.replace('?', '_')
                        .replace('*', '%')
                        .replaceFirst("=", " LIKE ");
            }
            if (isFirstToken) {
                isFirstToken = false;
            } else {
                selector.append(" AND ");
            }
            selector.append('(')
                    .append(token)
                    .append(')');
        }
        return selector.toString();
    }
@Test
    public void testConvertToSQL92() {
        System.out.print("testTokens  = " + datum);
        System.out.println("  output = " + expected);
        PurgeCommand pc = new PurgeCommand();
        Assert.assertEquals(expected, pc.convertToSQL92(datum));
    }