I wish to know about the right approach for
testing JMS in my Spring application using
JUnit. The JMS resources are being injected in the config XML file using JNDI. Obviously, this cannot be used by JUnit as the objects are bound with the application server (Websphere). With this config file in place, I am not even able to run my other test cases in the application which have nothing to do with JMS. I get BeanCreationException because of NoClassDefFoundError for com.ibm.webspere.naming.WsnInitialContextFactory.
So, if any one can point me to a tutorial or document which would help me with this, I would be grateful.