@Test public void shouldExplodeWhenContainsIllegalCharacters() { assertThatThrownBy(() -> Url62.decode("Foo Bar")) .isInstanceOf(IllegalArgumentException.class) .hasMessageContaining("contains illegal characters"); }
static UUID decode(String id) { BigInteger decoded = Base62.decode(id); return UuidConverter.toUuid(decoded); }
Url62 { static UUID decode(String id) { BigInteger decoded = Base62.decode(id); return UuidConverter.toUuid(decoded); } }
Url62 { static UUID decode(String id) { BigInteger decoded = Base62.decode(id); return UuidConverter.toUuid(decoded); }  }
Url62 { static UUID decode(String id) { BigInteger decoded = Base62.decode(id); return UuidConverter.toUuid(decoded); }   }
Url62 { static UUID decode(String id) { BigInteger decoded = Base62.decode(id); return UuidConverter.toUuid(decoded); }    }