Test code looks fine.
What does not work exactly?
Have you set up the Classpath in Eclipse to use the additional at runtime?
I am not sure which ones are required exactly but I usually set the client to use all of the jars in the jboss/client folder when running with Eclipse.
Also does the client have access to the classes that are deployed on the server?
It's OK, I'v forgotten some jar...
The jar needed are :