I like it, because it demonstrates how the two things are put together and fails right away if someone changes encoding of SHA256 digest byte array, for example.