viewpager/src/androidTest/java/android/support/v4/testutils/TestUtils.java
public static void assertRectangleBounds(String failMessagePrefix, @NonNull Rect rectangle,
            int left, int top, int right, int bottom) {
        assertEquals(failMessagePrefix + " left", rectangle.left, left);
        assertEquals(failMessagePrefix + " top", rectangle.top, top);
        assertEquals(failMessagePrefix + " right", rectangle.right, right);
        assertEquals(failMessagePrefix + " bottom", rectangle.bottom, bottom);
    }
/**
     * Checks whether the specified rectangle matches the specified left / top / right /
     * bottom bounds.
     */
Checks whether the specified rectangle matches the specified left / top / right
bottom bounds.
Checks whether the specified rectangle matches the specified left / top / right bottom bounds .
public static void assertRectangleBounds(String failMessagePrefix, @NonNull Rect rectangle,
            int left, int top, int right, int bottom) {
        assertEquals(failMessagePrefix + " left", rectangle.left, left);
        assertEquals(failMessagePrefix + " top", rectangle.top, top);
        assertEquals(failMessagePrefix + " right", rectangle.right, right);
        assertEquals(failMessagePrefix + " bottom", rectangle.bottom, bottom);
    }
public static void assertRectangleBounds ( String failMessagePrefix , @ NonNull Rect rectangle , int left , int top , int right , int bottom ) { assertEquals ( failMessagePrefix + " left" , rectangle . left , left ) ; assertEquals ( failMessagePrefix + " top" , rectangle . top , top ) ; assertEquals ( failMessagePrefix + " right" , rectangle . right , right ) ; assertEquals ( failMessagePrefix + " bottom" , rectangle . bottom , bottom ) ; }
Checks whether the specified rectangle matches the specified left / top / right
 bottom bounds.
Checks whether the specified rectangle matches the specified left / top / right bottom bounds .