### Question:
Decoder { public static String query(final CharSequence query) { return decode(query, true); }  static String path(final CharSequence path); static String query(final CharSequence query); static String decode(final CharSequence path, final boolean query);  }### Answer:
@Test public void querySpaceDecoding() { assertEquals("foo bar", Decoder.query("foo+bar")); assertEquals("foo bar", Decoder.query("foo bar")); }