catch (IOException e)
{
e.printStackTrace();
fail("Unable to create temporary File");
}
ifr.load(iniFile.getAbsolutePath());
Map<String, Properties> sections = ifr.getSections();
assertNotNull("Sections not null", sections);
assertEquals("Have 4 sections", sections.keySet().size(), 4);
assertTrue("Get globalprop1", sections.get("").getProperty("globalprop1").equals("globalval1"));
assertTrue("Get globalprop2", sections.get("").getProperty("globalprop2").equals("globalval2"));