@Test
public void testQuote() {

    Map<String, String> parameters = new HashMap<String, String>();
    parameters.put("a", " value with spaces ");
    parameters.put("b", "text/plain");
    parameters.put("c", "()<>@,;:\\\"/[]?=");
    assertEquals(
            "text/plain; a=\" value with spaces \"; b=\"text\\/plain\""
            + "; c=\"\\(\\)\\<\\>\\@\\,\\;\\:\\\\\\\"\\/\\[\\]\\?\\=\"",
            new MediaType("text", "plain", parameters).toString());
}