### Question:
ConsistencyCheck { static void checkMetastorePaths(Set<Path> paths, int globDepth) { for (Path path : paths) { checkMetastorePath(path, globDepth); } } private  ConsistencyCheck();   }### Answer:
@Test void metastorePathsCorrect() { ConsistencyCheck.checkMetastorePaths(Collections.singleton(new Path("/db/table/snapshot/partition")), 4); }
@Test void metastorePathsDepthIncorrect() { assertThatExceptionOfType(IllegalStateException.class) .isThrownBy(() -> ConsistencyCheck.checkMetastorePaths( Collections.singleton(new Path("/db/snapshot/partition")), 4)); }