### Question:
GlifLayout extends TemplateLayout { public View inflateFooter(@LayoutRes int footer) { ViewStub footerStub = findManagedViewById(R.id.suw_layout_footer); footerStub.setLayoutResource(footer); return footerStub.inflate(); } GlifLayout(Context context);  GlifLayout(Context context, int template);  GlifLayout(Context context, int template, int containerId);  GlifLayout(Context context, AttributeSet attrs); @TargetApi(VERSION_CODES.HONEYCOMB)  GlifLayout(Context context, AttributeSet attrs, int defStyleAttr); View inflateFooter(@LayoutRes int footer); View inflateStickyHeader(@LayoutRes int header); ScrollView getScrollView(); TextView getHeaderTextView(); void setHeaderText(int title); void setHeaderText(CharSequence title); CharSequence getHeaderText(); void setHeaderColor(ColorStateList color); ColorStateList getHeaderColor(); void setIcon(Drawable icon); Drawable getIcon(); void setPrimaryColor(@NonNull ColorStateList color); ColorStateList getPrimaryColor(); void setBackgroundBaseColor(@Nullable ColorStateList color); @Nullable ColorStateList getBackgroundBaseColor(); void setBackgroundPatterned(boolean patterned); boolean isBackgroundPatterned(); boolean isProgressBarShown(); void setProgressBarShown(boolean shown); ProgressBar peekProgressBar();  }### Answer:
@Test public void testInflateFooter() { GlifLayout layout = new GlifLayout(mContext); final View view = layout.inflateFooter(android.R.layout.simple_list_item_1); assertEquals(android.R.id.text1, view.getId()); assertNotNull(layout.findViewById(android.R.id.text1)); }
@Test public void testInflateFooterBlankTemplate() { GlifLayout layout = new GlifLayout(mContext, R.layout.suw_glif_blank_template); final View view = layout.inflateFooter(android.R.layout.simple_list_item_1); assertEquals(android.R.id.text1, view.getId()); assertNotNull(layout.findViewById(android.R.id.text1)); }
@Test public void testInflateFooter() { GlifLayout layout = new GlifLayout(context); final View view = layout.inflateFooter(android.R.layout.simple_list_item_1); assertThat(view.getId()).isEqualTo(android.R.id.text1); assertThat((View) layout.findViewById(android.R.id.text1)).isNotNull(); }
@Test public void testInflateFooterBlankTemplate() { GlifLayout layout = new GlifLayout(context, R.layout.suw_glif_blank_template); final View view = layout.inflateFooter(android.R.layout.simple_list_item_1); assertThat(view.getId()).isEqualTo(android.R.id.text1); assertThat((View) layout.findViewById(android.R.id.text1)).isNotNull(); }