public static byte[] jsonNodeToBinary(JsonNode node, String about) {
        try {
            byte[] value = node.binaryValue();
            if (value == null) {
                throw new IllegalArgumentException(about + ": expected Base64-encoded binary data.");
            }

            return value;
        } catch (IOException e) {
            throw new UncheckedIOException(about + ": unable to retrieve Base64-encoded binary data", e);
        }
    }
@Test
    public void testInvalidBinaryNode() {
        assertThrows(
            IllegalArgumentException.class,
            () -> MessageUtil.jsonNodeToBinary(new IntNode(42), "Test int to binary")
        );
        assertThrows(
            UncheckedIOException.class,
            () -> MessageUtil.jsonNodeToBinary(new TextNode("This is not base64!"), "Test non-base64 to binary")
        );
    }