### Question:
SubViewWithoutPresentationModelAttribute implements ChildViewAttribute { @Override public void bindTo(BindingContext bindingContext) { View subView = bindingContext.inflateWithoutAttachingToRoot(layoutId, parent); subViewHolder.setSubView(subView); } SubViewWithoutPresentationModelAttribute(ViewGroup parent, int layoutId, SubViewHolder subViewHolder); @Override void bindTo(BindingContext bindingContext);  }### Answer:
@Test public void whenBindTo_thenStaticSubViewIsSetOnHolder() { BindingContext bindingContext = mock(BindingContext.class); when(bindingContext.inflateWithoutAttachingToRoot(anyInt(), any(ViewGroup.class))).thenReturn(staticSubView); SubViewWithoutPresentationModelAttribute attribute = new SubViewWithoutPresentationModelAttribute(null, 0, subViewHolder); attribute.bindTo(bindingContext); verify(subViewHolder).setSubView(staticSubView); }