HDFS-7468. Moving verify* functions to corresponding classes. Contributed by Li Lu.