TypeResolver typeResolver = getTypeResolver();
FactData fd1 = new FactData( "Cheese",
"f1",
Arrays.<Field>asList(
new FieldData( "type",
"" ),
new FieldData( "price",
"42" ) ),
false );
factPopulator.add( new NewFactPopulator( populatedData, typeResolver, getClassLoader(), fd1 ) );
FactData fd2 = new FactData( "Cheese",
"f2",
Arrays.<Field>asList(
new FieldData( "type",
"" ),
new FieldData( "price",
"43" ) ),
false );
factPopulator.add( new NewFactPopulator( populatedData, typeResolver, getClassLoader(), fd2 ) );
FactData fd3 = new FactData( "Cheese",
"f3",
Arrays.<Field>asList(
new FieldData( "type",
"" ),
new FieldData( "price",
"45" ) ),
false );
factPopulator.add( new NewFactPopulator( populatedData, typeResolver, getClassLoader(), fd3 ) );
FieldData field = new FieldData();
field.setName( "cheeses" );
field.setNature( FieldData.TYPE_COLLECTION );
field.setValue( "=[f1,f2,f3]" );
List<Field> lstField = new ArrayList<Field>();
lstField.add( field );
FactData lst = new FactData( "Cheesery",
"listChesse",
lstField,