@Test
public void testSNAPSHOT() {

  for(Feature f : Feature.values()) {
    final int version = f.getInfo().getLayoutVersion();
    if (NameNodeLayoutVersion.supports(Feature.SNAPSHOT, version)) {
      assertTrue(NameNodeLayoutVersion.supports(
          Feature.FSIMAGE_NAME_OPTIMIZATION, version));
    }
  }
}