@Test(expected = PowsyblException.class)
public void testWrongColumnOrderWithAdd() {

    Matrix a = matrixFactory.create(2, 2, 2);
    a.add(0, 0, 1d);
    a.add(1, 0, 1d);
    a.add(0, 1, 1d);
    a.add(1, 0, 1d);
}