void () { ExpectedTypeInfo info1 = createInfo("java.lang.Exception", ExpectedTypeInfo.TYPE_STRICTLY); ExpectedTypeInfo info2 = createInfo("java.io.IOException", ExpectedTypeInfo.TYPE_OR_SUPERTYPE); ExpectedTypeInfo[] result = info1.intersect(info2); assertEquals(1, result.length); assertEquals(ExpectedTypeInfo.TYPE_STRICTLY, result[0].getKind()); assertTrue(result[0].getType().equalsToText("java.lang.Exception")); }