svoid test_WordTokReplacerWithSecondIn() { WordTokReplacerWithSecondIn rule = new( "who is x", ll("x", "y"), "x is y", ll("x is y of course") ); assertTrueVerbose(rule.matches("who is john")); L newRules = instancesOf Attractor(getEmits(rule)); assertEqualsVerbose(1, l(newRules)); assertEqualsVerbose(litciset("john is cool of course"), applyAttractors(newRules, "john is cool")); }