+ @Test
+ public void testNextHopActionCreation() {
+ SetNextHop action = null;
+
+ InetAddress ip = null;
+ try {
+ ip = InetAddress.getByName("171.71.9.52");
+ } catch (UnknownHostException e) {
+ logger.error("", e);
+ }
+
+ action = new SetNextHop(ip);
+ Assert.assertTrue(action.getAddress().equals(ip));
+
+ try {
+ ip = InetAddress.getByName("2001:420:281:1003:f2de:f1ff:fe71:728d");
+ } catch (UnknownHostException e) {
+ logger.error("", e);
+ }
+ action = new SetNextHop(ip);
+ Assert.assertTrue(action.getAddress().equals(ip));
+ }
+