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
I was able to do the same with Mockito. For example, with a Topic:
HazelcastInstance hazelcastInstance = Mockito.mock(HazelcastInstance.class); Mockito.when(hazelcastInstance.getTopic("yourtopic")).thenReturn(Mockito.mock(ITopic.class));