@Test
public void testAddView() {

    TemplateLayout layout = new TemplateLayout(mContext, R.layout.test_template,
            R.id.suw_layout_content);
    TextView tv = new TextView(mContext);
    tv.setId(R.id.test_view_id);
    layout.addView(tv);
    View view = layout.findViewById(R.id.test_view_id);
    assertSame("The view added should be the same text view", tv, view);
}