BRMSSuggestionCompletionLoader loader = new BRMSSuggestionCompletionLoader();
String header = ServiceImplementation.getDroolsHeader(item);
SuggestionCompletionEngine engine = loader.getSuggestionEngine( item );
assertNotNull(engine);
String[] modelFields = engine.getModelFields("Agent");
System.out.println("modelFields: "+Arrays.asList(modelFields));
assertNotNull(modelFields);
assertEquals(9, modelFields.length );
modelFields = engine.getModelFields(FieldAccessorsAndMutators.BOTH, "Agent");
assertNotNull(modelFields);
System.out.println("modelFields: "+Arrays.asList(modelFields));
assertEquals(10, modelFields.length );
modelFields = engine.getModelFields(FieldAccessorsAndMutators.ACCESSOR, "Agent");
assertNotNull(modelFields);
System.out.println("modelFields: "+Arrays.asList(modelFields));
assertEquals(9, modelFields.length );
modelFields = engine.getModelFields(FieldAccessorsAndMutators.MUTATOR, "Agent");
assertNotNull(modelFields);
System.out.println("modelFields: "+Arrays.asList(modelFields));
assertEquals(9, modelFields.length );
}