Remove unnecessary non-null check assertions

Private methods need to ensure to return a non-null value

Change-Id: Ie1fffc52282660c4d32c8fbedd9f47049b2e74ae
diff --git a/core/net/src/test/java/org/onosproject/net/intent/impl/PointToPointIntentCompilerTest.java b/core/net/src/test/java/org/onosproject/net/intent/impl/PointToPointIntentCompilerTest.java
index 9922ba5..65a4597 100644
--- a/core/net/src/test/java/org/onosproject/net/intent/impl/PointToPointIntentCompilerTest.java
+++ b/core/net/src/test/java/org/onosproject/net/intent/impl/PointToPointIntentCompilerTest.java
@@ -33,7 +33,6 @@
 import java.util.List;
 
 import static org.hamcrest.CoreMatchers.instanceOf;
-import static org.hamcrest.CoreMatchers.notNullValue;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.hasSize;
 import static org.hamcrest.Matchers.is;
@@ -89,11 +88,9 @@
     public void testForwardPathCompilation() {
 
         PointToPointIntent intent = makeIntent("d1", "d8");
-        assertThat(intent, is(notNullValue()));
 
         String[] hops = {"d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8"};
         PointToPointIntentCompiler compiler = makeCompiler(hops);
-        assertThat(compiler, is(notNullValue()));
 
         List<Intent> result = compiler.compile(intent, null, null);
         assertThat(result, is(Matchers.notNullValue()));
@@ -122,11 +119,9 @@
     public void testReversePathCompilation() {
 
         PointToPointIntent intent = makeIntent("d8", "d1");
-        assertThat(intent, is(notNullValue()));
 
         String[] hops = {"d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8"};
         PointToPointIntentCompiler compiler = makeCompiler(hops);
-        assertThat(compiler, is(notNullValue()));
 
         List<Intent> result = compiler.compile(intent, null, null);
         assertThat(result, is(Matchers.notNullValue()));