Save memory consumption by avoding unnecessary instantiation

Change-Id: I7ce66c11136653fabc490aa7f33fdadf4454d2cc
diff --git a/core/api/src/test/java/org/onosproject/net/intent/PathIntentTest.java b/core/api/src/test/java/org/onosproject/net/intent/PathIntentTest.java
index b195a54..dfbc184 100644
--- a/core/api/src/test/java/org/onosproject/net/intent/PathIntentTest.java
+++ b/core/api/src/test/java/org/onosproject/net/intent/PathIntentTest.java
@@ -16,6 +16,7 @@
 package org.onosproject.net.intent;
 
 import java.util.Arrays;
+import java.util.Collections;
 
 import org.junit.Test;
 import org.onosproject.net.ConnectPoint;
@@ -93,7 +94,7 @@
                 .appId(APPID)
                 .selector(MATCH)
                 .treatment(NOP)
-                .path(new DefaultPath(provider1, Arrays.asList(link1), cost))
+                .path(new DefaultPath(provider1, Collections.singletonList(link1), cost))
                 .build();
     }