Example project for http://stackoverflow.com/questions/24390264/robolectric-custom-view-returning-null-attributes-how-to-use-shadowtypedarra