### Question:
MatrixChecker { static void checkDimensions(int row, int col) { checkExpression(row > 0 && col > 0, "Row and column should be positive"); }    }### Answer:
@Test(expected = IllegalArgumentException.class) public void testCheckDimensions() { MatrixChecker.checkDimensions(-1, 0); }
@Test public void testCheckDimensions1() { MatrixChecker.checkDimensions( 2, 3); }
@Test public void testCheckDimensions2() { final Matrix a = Matrix.zeros(2, 3); final Matrix b = a.copy(); MatrixChecker.checkDimensions(a, b); }
@Test(expected = IllegalArgumentException.class) public void testCheckDimensions3() { final Matrix a = Matrix.zeros(2, 3); final Matrix b = Matrix.zeros(3, 3); MatrixChecker.checkDimensions(a, b); }