@Test
public void testParsingSocketAttribute() throws UnsupportedEncodingException {

  uri = "mysql://localhost?socket=" + URLEncoder.encode("/var/run/mysql/mysql.sock", "UTF-8");
  actualParsedResult = parse(uri);
  expectedParsedResult = new JsonObject()
    .put("host", "/var/run/mysql/mysql.sock");
  assertEquals(expectedParsedResult, actualParsedResult);
}