This test was actually failing as inflation was returning the parent (a LinearLayout) so the cast would explode. Passing false prevents the parent being attached and just returns the TextView itself.