void () { Object a = "reason:"; My.assertTrue(a instanceof java.lang.String, "ignore" ); Assertions.assertFalse(a instanceof java.lang.String, "ignore"); assertInstanceOf(java.lang.String.class, a); assertInstanceOf(java.lang.String.class, a, "message"); assertInstanceOf(java.lang.String.class, a, () -> a + " message"); Child.assertInstanceOf(java.lang.String.class, a, "message"); Child.assertTrue(a instanceof java.lang.String, "message1", "message2"); Child.assertTrue(a instanceof java.lang.String, "message1", "message2", "message3"); Assert.assertTrue(a instanceof java.lang.String, "ignore" ); }