PropertiesLoader implements Loader { public void load(Properties result, URI uri) throws IOException { URL url = uri.toURL(); InputStream input = url.openStream(); try { load(result, input); } finally { input.close(); } }  boolean accept(URI uri); void load(Properties result, URI uri); String defaultSpecFor(String uriPrefix);  }
@Test public void testLoadingCyrillicInUTF8() throws IOException { Properties result = new Properties(); loader.load(result, keyValueStream); assertTrue(result.containsKey(UTF_KEY)); assertTrue(result.getProperty(UTF_KEY).equals(UTF_VALUE)); }