Norm extends MetricScalar<T> { @Override public T value(final MetricSpaceField<T> field) { return field.actual(field.product().norm(this.vector)); } Norm(final Vect<T> vector); @Override T value(final MetricSpaceField<T> field);  }
@Test public void errorsWhenNoMetricSpace() { this.thrown.expect(UnsupportedOperationException.class); new Norm<>(new FixedVector<>(new Random<>())).value( new SpyField<>(new Object(), new Object()) ); }