Properties extends HashMap<String, Object> { public void load(final InputStream in) { load(in, true); } Properties();  Properties(final Map<String, Object> original); Object put(final String key,
                      final Object value); void store(final OutputStream out); void store(final OutputStream out,
                      boolean closeOnFinish); void load(final InputStream in); void load(final InputStream in,
                     boolean closeOnFinish);  }
@Test public void testEmptyState() throws IOException { final File fcontent = File.createTempFile("foo2", "bar"); final Properties loadProperties = new Properties(); final InputStream in = new FileInputStream(fcontent); loadProperties.load(in); assertEquals(0, loadProperties.size()); }