@Override
  public <T extends Enum<T>> T getEnum(PropertyKey key, Class<T> enumType) {
    checkArgument(key.getEnumType().equals(enumType), "PropertyKey %s is not of enum type", key);
    return enumType.cast(get(key));
  }
@Test
  public void getEnum() {
    mConfiguration.set(PropertyKey.USER_FILE_READ_TYPE_DEFAULT, ReadType.NO_CACHE);
    assertEquals(ReadType.NO_CACHE,
        mConfiguration.getEnum(PropertyKey.USER_FILE_READ_TYPE_DEFAULT, ReadType.class));
  }