@Test
    void testInitWithoutIniResource() {
        assertThrows(IllegalStateException.class, () -> {
            new IniRealm().init();
        });
    }
Unit tests for the {@link IniRealm} class.

@since 1.0
core/src/test/java/org/apache/shiro/realm/text/IniRealmTest.java