### Question:
PMap { public boolean has( String key ) { return this.getMap().containsKey(key); } 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 hasReturnsCorrectResult() { PMap subject = new PMap("foo=123.45|bar=56.78"); assertTrue(subject.has("foo")); assertTrue(subject.has("bar")); assertFalse(subject.has("baz")); }