### Question:
Matrix { int[][] multiple(int size) { int[][] table = new int[size][size]; for (int axisI = 0; axisI < size; axisI++) { for (int axisJ = 0; axisJ < size; axisJ++) { table[axisI][axisJ] = (axisI + 1) * (axisJ + 1); } } return table; }    }### Answer:
@Test public void ifSizeOfMultipledTableEqualsThree() { Matrix matrix = new Matrix(); int[][] result = matrix.multiple(3); int[][] expect = { {1, 2, 3}, {2, 4, 6}, {3, 6, 9} }; assertThat(result, is(expect)); }