IMap<String, String> imap = instance.getMap(AUTH_MAP_NAME);
assertNull(imap.get("key"));
imap.put("key", "value");
transaction.commit();
// Check that when trying to rollback after having commited will throw an IllegalStageException
transaction.rollback();
}
@Test
public void testHazelcastJavaClient() throws UnknownHostException {
// Connect a client to the cluster