public static String calculateSha256Hex(@Nonnull byte[] data) throws NoSuchAlgorithmException {
        return calculateSha256Hex(data, data.length);
    }
@Test
    public void test_exception_whenDirectory() {
        Path path = Paths.get("src", "test", "resources");
        assertThrows(IOException.class, () -> Sha256Util.calculateSha256Hex(path));
    }