@Test
public void testLogin() throws IOException {

  try (InputStream is = ResourceUtils.getInputStreamForPath("classpath:shiro.ini")) {
    Ini ini = new Ini();
    ini.load(is);
    new WebIniSecurityManagerFactory(ini).getInstance().authenticate(new UsernamePasswordToken("admin", "admin"));
  }
}