@Test
  public void integerDoubleAndBooleanProperty() {
    PropertiesLoader pl =
        new PropertiesLoader("classpath:/test1.properties", "classpath:/test2.properties");

    assertThat(pl.getInteger("p1")).isEqualTo(new Integer(1));
    try {
      pl.getInteger("notExist");
      fail("should fail here");
    } catch (NoSuchElementException e) {
    }
    assertThat(pl.getInteger("notExist", 100)).isEqualTo(new Integer(100));

    assertThat(pl.getBoolean("p4")).isEqualTo(new Boolean(true));
    assertThat(pl.getBoolean("p4", true)).isEqualTo(new Boolean(true));

    try {
      pl.getBoolean("notExist");
      fail("should fail here");
    } catch (NoSuchElementException e) {
    }
    assertThat(pl.getBoolean("notExist", true)).isEqualTo(new Boolean(true));
  }