public final void testAsciiCharacterClassOperatorAlnum() {
ArrayList<String> params = new ArrayList<String>();
params.add("alnum");
RegexpOperator spec = (new AsciiCharacterClassOperator.Factory()).createOperator(params);
NondeterministicAutomatonByThompsonApproach automaton =
new NondeterministicAutomatonByThompsonApproach(spec.createAutomaton(
new ArrayList<AutomatonSpecification>()));
assertTrue(automaton.accepts("w"));
assertTrue(automaton.accepts("9"));
assertTrue(automaton.accepts("W"));
assertTrue(automaton.accepts("a"));
assertTrue(automaton.accepts("6"));
assertFalse(automaton.accepts(""));
assertFalse(automaton.accepts(" "));
assertFalse(automaton.accepts("g9"));
assertFalse(automaton.accepts("bedziedobrze"));
assertFalse(automaton.accepts("7dwa7dwa"));
}