@Test
void decodeQueryString3() {

  String noPath = "https://api.nordstrom.com";
  String noPathTrailingSlash = "https://api.nordstrom.com/";
  assertThrows(
      IndexOutOfBoundsException.class, () -> XUrl.decodeQueryString(noPath).get("param1").get(0));
  assertThrows(
      IndexOutOfBoundsException.class,
      () -> XUrl.decodeQueryString(noPathTrailingSlash).get("param2").get(0));
  assertThrows(
      IndexOutOfBoundsException.class,
      () -> XUrl.decodeQueryString(noPathTrailingSlash).get("param2").get(0));
  String noPathQuery = "https://api.nordstrom.com?foo=bar";
  assertThrows(
      IndexOutOfBoundsException.class,
      () -> XUrl.decodeQueryString(noPathQuery).get("param3").get(0));
  String withPathNoQuery = "https://api.nordstrom.com/v1";
  assertThrows(
      IndexOutOfBoundsException.class,
      () -> XUrl.decodeQueryString(withPathNoQuery).get("param3").get(1));
  String withPathTrailingSlashNoQuery = "https://api.nordstrom.com/v1/";
  assertThrows(
      IndexOutOfBoundsException.class,
      () -> XUrl.decodeQueryString(withPathTrailingSlashNoQuery).get("param3").get(1));
  String withPathTrailingSlash = "https://api.nordstrom.com/v1/?foo=bar";
  assertThrows(
      IndexOutOfBoundsException.class,
      () -> XUrl.decodeQueryString(withPathTrailingSlash).get("param3").get(1));
}