@Override
  public String getString(PropertyKey key) {
    if (key.getType() != PropertyKey.PropertyType.STRING) {
      LOG.warn("PropertyKey {}'s type is {}, please use proper getter method for the type, "
          + "getString will no longer work for non-STRING property types in 3.0",
          key, key.getType());
    }
    Object value = get(key);
    if (value instanceof String) {
      return (String) value;
    }
    return value.toString();
  }
@Test
  public void defaultLoggerCorrectlyLoaded() throws Exception {
    // Avoid interference from system properties. site-properties will not be loaded during tests
    try (Closeable p =
        new SystemPropertyRule(PropertyKey.LOGGER_TYPE.toString(), null).toResource()) {
      String loggerType = mConfiguration.getString(PropertyKey.LOGGER_TYPE);
      assertEquals("Console", loggerType);
    }
  }