### Question:
BindingViewInflater implements ViewCreationListener { public InflatedViewWithRoot inflateView(int layoutId) { resolvedBindingAttributesForChildViews = Lists.newArrayList(); errors = new ViewHierarchyInflationErrorsException(); View rootView = nonBindingViewInflater.inflateWithoutRoot(layoutId); return createInflatedViewWithRoot(rootView); } BindingViewInflater(NonBindingViewInflater nonBindingViewInflater, BindingAttributeResolver bindingAttributeResolver,
			BindingAttributeParser bindingAttributeParser); InflatedViewWithRoot inflateView(int layoutId); InflatedViewWithRoot inflateView(int layoutId, ViewGroup root, boolean attachToRoot); InflatedViewWithRoot inflateView(int layoutId, Collection<PredefinedPendingAttributesForView> predefinedPendingAttributesForViewGroup,
			ViewGroup root, boolean attachToRoot); @Override void onViewCreated(View childView, AttributeSet attrs);  }### Answer:
@Test public void givenAChildViewWithBindingAttributes_whenInflateView_thenAChildViewBindingAttributesShouldBeAdded() { declareAChildView(); InflatedViewWithRoot inflatedView = bindingViewInflater.inflateView(layoutId); assertThat(numberOfChildViewBindingAttributes(inflatedView), equalTo(1)); }
@Test public void givenAChildViewWithoutBindingAttributes_whenInflateBindingView_thenNoChildViewBindingAttributesShouldBeAdded() { declareEmptyChildViews(); InflatedViewWithRoot inflatedView = bindingViewInflater.inflateView(layoutId); assertThat(numberOfChildViewBindingAttributes(inflatedView), equalTo(0)); }
@Test public void givenAPredefinedPendingAttributesForView_whenInflateView_thenChildViewBindingAttributesIsAdded() { InflatedViewWithRoot inflatedView = bindingViewInflater.inflateView(layoutId, createAPredefinedPendingAttributesForView(), null, false); assertThat(numberOfChildViewBindingAttributes(inflatedView), equalTo(1)); }