@Test
public void testRotateFit() {

    int[] pixels1 = new int[] {
            1, 2, 3, 4,
            5, 6, 7, 8,
            9, 10, 11, 12
    };
    int[] pixels2 = BitmapUtils.rotate(pixels1, 4, 3, null);
    int[] pixels3 = BitmapUtils.rotate(pixels2, 3, 4, null);
    int[] pixels4 = BitmapUtils.rotate(pixels3, 4, 3, null);
    int[] pixels5 = BitmapUtils.rotate(pixels4, 3, 4, null);
    assertArrayEquals(pixels1, pixels5);
}