### Question:
ByteArray implements Comparable<ByteArray>, JsonStringSerializable { @JsonCreator public static ByteArray fromBase64Url(@NonNull final String base64) throws Base64UrlException { return new ByteArray(base64); } ByteArray(@NonNull byte[] bytes); private  ByteArray(String base64); static ByteArray fromBase64(@NonNull final String base64); @JsonCreator static ByteArray fromBase64Url(@NonNull final String base64); static ByteArray fromHex(@NonNull final String hex); ByteArray concat(@NonNull ByteArray tail); boolean isEmpty(); int size(); byte[] getBytes(); String getBase64(); String getBase64Url(); @ToString.Include String getHex(); @Override String toJsonString(); @Override int compareTo(ByteArray other);  }### Answer:
@Test(expected = Base64UrlException.class) public void decodeBadAlphabetTest() throws Base64UrlException { ByteArray.fromBase64Url("****"); }
@Test(expected = Base64UrlException.class) public void decodeBadPaddingTest() throws Base64UrlException { ByteArray.fromBase64Url("A==="); }