public static byte[] decodeBytes(String bech32, String expectedHrp, Encoding expectedEncoding) {
        Bech32.Bech32Data decoded = decode(bech32);
        if (!decoded.hrp.equals(expectedHrp) || decoded.encoding != expectedEncoding) {
            throw new AddressFormatException("unexpected hrp or encoding");
        }
        return decoded.decode5to8();
    }
@Test
    @Parameters(method = "nip19Vectors")
    public void decodeBytes2(String expectedHex, String hrp, String bech32) {
        byte[] decoded = Bech32.decodeBytes(bech32, hrp, Bech32.Encoding.BECH32);

        assertEquals("incorrect decoded data", expectedHex, ByteUtils.formatHex(decoded));
    }