Well, it's fairly clear from the error message that the name you're looking for isn't known.
Can you find any mention of MainBain using the JNDI browser (other than the remote bean which we know is there since the test class found it ok)?
[Message sent by forum member 'matterbury' (matterbury)]
http://forums.java.net/jive/thread.jspa?messageID=338197