AxisUtils { public static <S extends AnnotatedSpace<A>, A extends TypedAxis> long countSpatialDimensions(final S space) { return spatialAxisStream(space).count(); } private  AxisUtils(); static long countSpatialDimensions(final S space); static Optional<String> getSpatialUnit(final S space, final UnitService unitService); static boolean hasChannelDimensions(final S space); static boolean hasSpatialDimensions(final S space); static boolean hasTimeDimensions(final S space); static boolean isSpatialCalibrationsIsotropic(final S space, final double tolerance,
			final UnitService unitService);  }
@Test(expected = NullPointerException.class) public void testCountSpatialDimensionsThrowsNPEIfNullSpace() { AxisUtils.countSpatialDimensions(null); }