In my unit tests, I want to create an embedded (in-process/in-memory) Hazelcast instance that does not attempt to start or perform any networking operations at all.
How
You can create in memory without mock like this:
HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance();
Other params in your constructor you can use mock, this way your code will work well.