<div><br></div>   I was going to say I use Mockito all the time for my rules tests and it works fine...<div><br></div><div>   Edson<br><br><div class="gmail_quote">2011/2/7 dhermanns <span dir="ltr">&lt;<a href="mailto:d.hermanns@lvm.de">d.hermanns@lvm.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Stupid one,<br>
<br>
i found the reason myself. The import was wrong. It has to be:<br>
<br>
import de.lvm.verteilung.monitoring.VorverteilungServicesMonitoringMBean;<br>
<br>
So the ClassCastException was absolutely right<br>
<br>
cu,<br>
Dirk<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Isn-t-it-possible-to-mock-a-global-with-e-g-Mockito-or-EasyMock-tp2442072p2442141.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Isn-t-it-possible-to-mock-a-global-with-e-g-Mockito-or-EasyMock-tp2442072p2442141.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>