@Test
    void testIniFileWithoutUsers() {
        IniRealm realm = new IniRealm();
        realm.setResourcePath("classpath:org/apache/shiro/realm/text/IniRealmTest.noUsers.ini");
        realm.init();
        assertTrue(realm.roleExists("admin"));
    }
Unit tests for the {@link IniRealm} class.

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