Due to type mismatch, test wasn't actually testing the contents of the intent

Change-Id: Iac78d3917ce6287423c4369f22e448b007a6b5e9
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MplsIntentCompilerTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MplsIntentCompilerTest.java
index 1d297f0..4890e03 100644
--- a/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MplsIntentCompilerTest.java
+++ b/core/net/src/test/java/org/onosproject/net/intent/impl/compiler/MplsIntentCompilerTest.java
@@ -96,7 +96,8 @@
         Intent forwardResultIntent = result.get(0);
         assertThat(forwardResultIntent instanceof MplsPathIntent, is(true));
 
-        if (forwardResultIntent instanceof MplsIntent) {
+        // if statement suppresses static analysis warnings about unchecked cast
+        if (forwardResultIntent instanceof MplsPathIntent) {
             MplsPathIntent forwardPathIntent = (MplsPathIntent) forwardResultIntent;
             // 7 links for the hops, plus one default lnk on ingress and egress
             assertThat(forwardPathIntent.path().links(), hasSize(hops.length + 1));
@@ -133,7 +134,8 @@
         Intent reverseResultIntent = result.get(0);
         assertThat(reverseResultIntent instanceof MplsPathIntent, is(true));
 
-        if (reverseResultIntent instanceof MplsIntent) {
+        // if statement suppresses static analysis warnings about unchecked cast
+        if (reverseResultIntent instanceof MplsPathIntent) {
             MplsPathIntent reversePathIntent = (MplsPathIntent) reverseResultIntent;
             assertThat(reversePathIntent.path().links(), hasSize(hops.length + 1));
             assertThat(reversePathIntent.path().links(), linksHasPath("d2", "d1"));