String expected = "rule \"test sub constraints\""
+ "\tdialect \"mvel\"\n when "
+ " Person(field1.field2 == variableHere)" + " then "
+ "end";
PackageDataModelOracle dmo = mock( PackageDataModelOracle.class );
when(
dmo.getProjectModelFields()
).thenReturn(
new HashMap<String, ModelField[]>() {{
put( "Person", new ModelField[]{
new ModelField(
"field1",