public void testSimpleMethodCallWithFrom() throws Exception {
final RuleDescr rule = parseResource( "test_SimpleMethodCallWithFrom.drl" ).rule();
final PatternDescr pattern = (PatternDescr) rule.getLhs().getDescrs().get( 0 );
final FromDescr from = (FromDescr) pattern.getSource();
final AccessorDescr method = (AccessorDescr) from.getDataSource();
assertFalse( this.parser.getErrorMessages().toString(),
this.parser.hasErrors() );
assertEquals( "something.doIt( foo,bar,42,\"hello\",{ a => \"b\", \"something\" => 42, \"a\" => foo, x => {x=>y}},\"end\", [a, \"b\", 42] )",
method.toString() );
}