@Test
public void integerSuffix() throws Exception {

    prepareConfig("20K");
    assertEquals(20 * 1024, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
    prepareConfig("20k");
    assertEquals(20 * 1024, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
    prepareConfig("1M");
    assertEquals(1 * 1024 * 1024, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
    prepareConfig("1m");
    assertEquals(1 * 1024 * 1024, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
    prepareConfig("1G");
    assertEquals(1 * 1024 * 1024 * 1024,
            this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
    prepareConfig("1g");
    assertEquals(1 * 1024 * 1024 * 1024,
            this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
    // suffix but not a number
    prepareConfig("hundredK");
    assertEquals(-1, this.config.getInteger(XenonConfigurationTest.class, this.foundProperty, -1));
}