Added mock JavaSpace object for unit tests.