@Test
public void testDensePrint() throws IOException {

    Matrix a = createA(matrixFactory);
    String expected = String.join(System.lineSeparator(),
            " 1.0 0.0",
            " 0.0 3.0",
            " 2.0 0.0")
            + System.lineSeparator();
    assertEquals(expected, print(a, null, null));
    assertEquals(expected, print(a));
}