}
public void testDataEnums() {
String pkg = "package org.test\n import org.drools.brms.client.modeldriven.SuggestionCompletionEngineTest.NestedClass";
SuggestionCompletionLoader loader = new SuggestionCompletionLoader();
List enums = new ArrayList();
enums.add( "'Person.age' : [42, 43] \n 'Person.sex' : ['M', 'F']");
enums.add( "'Driver.sex' : ['M', 'F']" );
SuggestionCompletionEngine engine = loader.getSuggestionEngine( pkg, new ArrayList(), new ArrayList() , enums);
assertEquals( "String", engine.getFieldType( "SuggestionCompletionEngineTest$NestedClass", "name" ) );
assertEquals(3, engine.dataEnumLists.size());
String[] items = (String[]) engine.dataEnumLists.get( "Person.age" );
assertEquals(2, items.length);