### Question:
PMap { public boolean has(String key) { return map.containsKey(Helper.camelCaseToUnderScore(key)); } PMap();  PMap(int capacity);  PMap(Map<String, String> map);  PMap(PMap map);  PMap(String propertiesString); static PMap read(String[] args); PMap put(PMap map); PMap put(String key, Object str); PMap remove(String key); boolean has(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); float getFloat(String key, float _default); String get(String key, String _default); Map<String, String> toMap(); PMap merge(PMap read); boolean isEmpty(); @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")); }