### Question:
PMap { public double getDouble( String key, double _default ) { String str = get(key); if (!Helper.isEmpty(str)) { try { return Double.parseDouble(str); } catch (Exception ex) { } } return _default; } PMap();  PMap( int capacity );  PMap( Map<String, String> map );  PMap( String propertiesString ); PMap put( PMap map ); PMap put( String key, Object str ); PMap remove( String key ); long getLong( String key, long _default ); int getInt( String key, int _default ); boolean getBool( String key, boolean _default ); double getDouble( String key, double _default ); String get( String key, String _default ); Map<String, String> toMap(); PMap merge( PMap read ); boolean has( String key ); @Override String toString();  }### Answer:
@Test public void numericPropertyCanBeRetrievedAsDouble() { PMap subject = new PMap("foo=123.45|bar=56.78"); assertEquals(123.45, subject.getDouble("foo", 0), 1e-4); }