HashMap<String, String> globals = new HashMap<String, String>();
when( dmo.getPackageGlobals() ).thenReturn( globals );
RuleModel m = RuleModelDRLPersistenceImpl.getInstance().unmarshal( drl,
Collections.EMPTY_LIST,
dmo );
assertEquals( 2, m.getImports().getImports().size() );
assertTrue( m.rhs[ 0 ] instanceof ActionCallMethod );
ActionCallMethod mc = (ActionCallMethod) m.rhs[ 0 ];
assertEquals( "put", mc.getMethodName() );
assertEquals( "m", mc.getVariable() );