<BUG>ComparableQuantity<Speed> speed = metre.divide(QuantityOperations.of(time, Speed.class));Assert.assertEquals(Integer.valueOf(speed.getValue().intValue()), Integer.valueOf(1));</BUG><CONTEXT>public class DoubleComparableQuantityTest {@Testpublic void divideOperationsTest() {ComparableQuantity<Length> metre = Quantities.getQuantity(10D, SI.METRE);ComparableQuantity<Time> time = Quantities.getQuantity(10D, SI.SECOND);<extra_id_0>Assert.assertEquals(SI.METRES_PER_SECOND, speed.getUnit());}@Test(expected = ClassCastException.class)</CONTEXT>
ComparableQuantity<Speed> speed = metre.divide(time, Speed.class);Assert.assertEquals(Integer.valueOf(speed.getValue().intValue()), Integer.valueOf(1));