@Test(dataProvider = "images")
public void testRotate(int[][] matrix, int[][] afterRotated) {

    new RotateImage().rotate(matrix);
    for (int i = 0; i < matrix.length; i++) {
        for (int j = 0; j < matrix[i].length; j++) {
            assertEquals(matrix[i][j], afterRotated[i][j]);
        }
    }
}