Update to Hazelcast 3.2.3

- Fix compilation, if you need to use Hazelcast 3.2.3
- Workaround for issue with recent Hazelcast version + PowerMock
- Unexpected exception should fail the test instead

Change-Id: I2ecf1deb3e38be98837e41b8df57b680ad2445a1
diff --git a/src/main/java/net/onrc/onos/apps/proxyarp/ProxyArpManager.java b/src/main/java/net/onrc/onos/apps/proxyarp/ProxyArpManager.java
index 04957f2..1b3167d 100644
--- a/src/main/java/net/onrc/onos/apps/proxyarp/ProxyArpManager.java
+++ b/src/main/java/net/onrc/onos/apps/proxyarp/ProxyArpManager.java
@@ -725,4 +725,15 @@
     public long getArpCleaningTimerPeriod() {
         return arpCleaningTimerPeriodConfig;
     }
+
+    /**
+     * Replaces the internal ArpCache.
+     *
+     * @param cache ArpCache instance
+     *
+     * @exclude Backdoor for unit testing purpose only, do not use.
+     */
+    void debugReplaceArpCache(final ArpCache cache) {
+        this.arpCache = cache;
+    }
 }
diff --git a/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZClient.java b/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZClient.java
index dc9d2f8..e568e09 100644
--- a/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZClient.java
+++ b/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZClient.java
@@ -130,13 +130,13 @@
             final int port = baseHzConfig.getNetworkConfig().getPort();
 
             String server = System.getProperty("net.onrc.onos.core.datastore.hazelcast.client.server", "localhost");
-            clientConfig.addAddress(server + ":" + port);
+            clientConfig.getNetworkConfig().addAddress(server + ":" + port);
 
             // client mode connection limit.
             // set to 0 for fast fall back to Instance mode.
             String sAttempts = System.getProperty("net.onrc.onos.core.datastore.hazelcast.client.attemptLimit");
             if (sAttempts != null) {
-                clientConfig.setConnectionAttemptLimit(Integer.parseInt(sAttempts));
+                clientConfig.getNetworkConfig().setConnectionAttemptLimit(Integer.parseInt(sAttempts));
             }
 
             // copy group config from base Hazelcast configuration
@@ -148,7 +148,7 @@
 
             registerSerializer(clientConfig.getSerializationConfig());
 
-            log.info("Starting Hazelcast datastore client for [{}]", clientConfig.getAddressList());
+            log.info("Starting Hazelcast datastore client for [{}]", clientConfig.getNetworkConfig().getAddresses());
 
             try {
                 instance = HazelcastClient.newHazelcastClient(clientConfig);