### Question:
PurgeCommand extends AbstractJmxCommand { 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(); }  @Override String getName(); @Override String getOneLineDescription(); void purgeQueue(ObjectName queue); String convertToSQL92(List<String> tokens);  }### Answer:
@Test public void testConvertToSQL92() { System.out.print("testTokens = " + datum); System.out.println(" output = " + expected); PurgeCommand pc = new PurgeCommand(); Assert.assertEquals(expected, pc.convertToSQL92(datum)); }