public void testTranslateCriteria() {
TranslateCriteria trans = new TranslateCriteria();
trans.addTranslation(new CompareCriteria(exampleElement(false, 1), CompareCriteria.EQ, exampleElement(false, 2)));
// Run symbol mapper
StaticSymbolMappingVisitor visitor = new StaticSymbolMappingVisitor(getSymbolMap());
DeepPreOrderNavigator.doVisit(trans, visitor);
// Check that element got mapped
List elements = (List) ElementCollectorVisitor.getElements(trans, false);
assertEquals("Translate criteria element did not get mapped correctly: ", exampleElement(false, 1), elements.get(0)); //$NON-NLS-1$