DblMult implements FieldMultiplication<Double> { @Override public Double multiply(final Double operand, final Double second) { return operand * second; }  @Override Double multiply(final Double operand, final Double second); @Override Double neutral(); @Override Double inverse(final Double elt);  }
@Test public void calculatesMultiplication() { final double first = Math.random(); final double second = Math.random(); MatcherAssert.assertThat( new DblMult().multiply(first, second), Matchers.equalTo(first * second) ); }