//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testMultiply()
        public virtual void testMultiply()
        {
            assertMatrixEquals(COMMONS.multiply(DoubleMatrix.identity(2), M3), M3);
            assertMatrixEquals(COMMONS.multiply(M3, M4), DoubleMatrix.copyOf(new double[][]
            {
                new double[] { 19, 22 },
                new double[] { 17, 20 }
            }));
        }
        public virtual void test()
        {
            DoubleMatrix m1       = ESTIMATE.getInitializedMatrix(J, X);
            DoubleMatrix m2       = J.apply(X);
            DoubleMatrix m3       = (DoubleMatrix)(ALGEBRA.multiply(m1, m2));
            DoubleMatrix identity = DoubleMatrix.identity(2);

            for (int i = 0; i < 2; i++)
            {
                for (int j = 0; j < 2; j++)
                {
                    assertEquals(m3.get(i, j), identity.get(i, j), 1e-6);
                }
            }
        }