@Test
public void ofIntMatrix() {

	final int rows = 10;
	final int cols = 15;
	final Codec<int[][], IntegerGene> codec = Codecs.ofMatrix(
		IntRange.of(0, 1_000),
		rows, cols
	);
	final Genotype<IntegerGene> gt = codec.encoding().newInstance();
	final int[][] matrix = codec.decode(gt);
	assertEquals(matrix.length, rows);
	assertEquals(matrix[0].length, cols);
	for (int row = 0; row < rows; ++row) {
		for (int col = 0; col < cols; ++col) {
			assertEquals(matrix[row][col], gt.get(row).get(col).intValue());
		}
	}
}