@Test
public void testParsingHostSocket() throws UnsupportedEncodingException {

  uri = "mysql://user_name@" + URLEncoder.encode("/var/run/mysql/mysql.sock", "UTF-8") + ":3306/world%5Fx";
  actualParsedResult = parse(uri);
  expectedParsedResult = new JsonObject()
    .put("user", "user_name")
    .put("host", "/var/run/mysql/mysql.sock")
    .put("port", 3306)
    .put("database", "world_x");
  assertEquals(expectedParsedResult, actualParsedResult);
}