public static void notNull(Object obj, String message) {
        if (obj == null) {
            throw new IllegalArgumentException(message);
        }
    }
@Test
    void testNotNull2() {
        Assertions.assertThrows(
                IllegalStateException.class, () -> notNull(null, new IllegalStateException("null object")));
    }