Replace javafx Pair with commons Pair

Change-Id: I2a81faf4877889729ac81c75ed6039f33c6222fc
diff --git a/apps/newoptical/src/test/java/org/onosproject/newoptical/OpticalPathProvisionerTest.java b/apps/newoptical/src/test/java/org/onosproject/newoptical/OpticalPathProvisionerTest.java
index b7d26e3..669124d 100644
--- a/apps/newoptical/src/test/java/org/onosproject/newoptical/OpticalPathProvisionerTest.java
+++ b/apps/newoptical/src/test/java/org/onosproject/newoptical/OpticalPathProvisionerTest.java
@@ -16,7 +16,7 @@
 
 package org.onosproject.newoptical;
 
-import javafx.util.Pair;
+import org.apache.commons.lang3.tuple.Pair;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
@@ -502,7 +502,7 @@
                 return Collections.emptySet();
             }
 
-            edges.add(new Pair<>((DeviceId) src, (DeviceId) dst));
+            edges.add(Pair.of((DeviceId) src, (DeviceId) dst));
 
             Set<Path> paths = new HashSet<>();
             List<Link> links = Stream.of(LINK1, LINK2, LINK3, LINK4, LINK5, LINK6)
@@ -636,7 +636,7 @@
 
                 @Override
                 public ConsistentMap<K, V> build() {
-                    return new TestConsistentMap<K, V>();
+                    return new TestConsistentMap<>();
                 }
             };
 
@@ -651,7 +651,7 @@
                     return new DistributedSetAdapter<E>() {
                         @Override
                         public DistributedSet<E> asDistributedSet() {
-                            return new TestDistributedSet<E>();
+                            return new TestDistributedSet<>();
                         }
                     };
                 }