@Test(expected = IllegalArgumentException.class)
public void testRequireViewByIdInvalid() {

    View container = mActivityTestRule.getActivity().findViewById(R.id.container);
    // NO_ID is always invalid
    ViewCompat.requireViewById(container, View.NO_ID);
}