### Question:
ExtendedProperties implements Map<String, String>, Serializable, Cloneable { public static ExtendedProperties fromProperties(final Properties props) { ExtendedProperties result = new ExtendedProperties(); for (Enumeration<?> en = props.propertyNames(); en.hasMoreElements();) { String key = (String) en.nextElement(); String value = props.getProperty(key); result.put(key, value); } return result; } ExtendedProperties();  ExtendedProperties(final Map<String, String> defaults); static ExtendedProperties fromProperties(final Properties props); @Override void clear(); @Override String get(final Object key); String get(final Object key, final String defaultValue); String get(final Object key, final boolean process); boolean getBoolean(final String key); boolean getBoolean(final String key, final boolean defaultValue); long getLong(final String key); long getLong(final String key, final long defaultValue); int getInteger(final String key); int getInteger(final String key, final int defaultValue); @Override String put(final String key, final String value); @Override boolean containsKey(final Object key); @Override boolean containsValue(final Object value); @Override Set<Entry<String, String>> entrySet(); @Override boolean isEmpty(); @Override void putAll(final Map<? extends String, ? extends String> map); @Override String remove(final Object key); @Override Collection<String> values(); @Override Set<String> keySet(); @Override int size(); String processPropertyValue(final String input); @Override boolean equals(final Object obj); @Override int hashCode(); Properties toProperties(); @Override String toString(); void load(final InputStream is); void load(final InputStream is, final String encoding); void load(final Reader reader); void store(final OutputStream os, final String comments, final boolean sorted, final boolean process); void store(final OutputStream os, final String encoding, final String comments, final boolean sorted,
			final boolean process); void store(final Writer writer, final String comments, final boolean sorted, final boolean process); @Override ExtendedProperties clone();  }### Answer:
@Test public void testFromProperties() { Properties p = new Properties(); p.setProperty("test1", "test1"); p.setProperty("test2", "test2"); p.setProperty("test3", "test3"); ExtendedProperties extProps = ExtendedProperties.fromProperties(p); Assert.assertEquals(extProps.size(), 3); Assert.assertEquals(extProps.get("test1"), "test1"); Assert.assertEquals(extProps.get("test2"), "test2"); Assert.assertEquals(extProps.get("test3"), "test3"); }