### Question:
ThreddsConfig { static public String get(String paramName, String defValue) { if (reader == null) return defValue; return reader.get(paramName, defValue); }  static void init(String filename); static String get(String paramName, String defValue); static boolean hasElement(String paramName); static boolean getBoolean(String paramName, boolean defValue); static Boolean getBoolean(String paramName); static long getBytes(String paramName, long defValue); static int getInt(String paramName, int defValue); static long getLong(String paramName, long defValue); static int getSeconds(String paramName, int defValue); static List<String> getRootList(String elementName);  }### Answer:
@Test public void testGet() { assertEquals("THREDDS Support", ThreddsConfig.get("serverInformation.contact.name", null)); assertEquals("true", ThreddsConfig.get("CatalogServices.allowRemote", null)); assertEquals(null, ThreddsConfig.get("WMS.allow", null)); assertEquals(52428800, ThreddsConfig.getBytes("NetcdfSubsetService.maxFileDownloadSize", -1L)); }
@Test public void testCachePathPolicy() { String policyStr = ThreddsConfig.get("AggregationCache.cachePathPolicy", null); assertEquals("OneDirectory", policyStr); DiskCache2.CachePathPolicy policyObj = DiskCache2.CachePathPolicy.valueOf(policyStr); assertSame(DiskCache2.CachePathPolicy.OneDirectory, policyObj); }