- // Empty match, represents the empty set
- Match o = new Match();
- Assert.assertTrue(m6.getIntersection(o).equals(o));
- Assert.assertTrue(o.getIntersection(m6).equals(o));
+ // Empty match, represents the universal set (all packets)
+ Match u = new Match();
+ Assert.assertTrue(m6.getIntersection(u).equals(m6));
+ Assert.assertTrue(u.getIntersection(m6).equals(m6));
+
+ // No intersection with null match, empty set
+ Assert.assertNull(m6.getIntersection(null));