### Question:
StaticLayoutAttribute implements ChildViewAttribute { @Override public void bindTo(BindingContext bindingContext) { int itemLayoutId = attribute.getResourceId(bindingContext.getContext()); rowLayoutUpdater.updateRowLayout(itemLayoutId); } StaticLayoutAttribute(RowLayoutUpdater rowLayoutUpdater, StaticResourceAttribute attribute); @Override void bindTo(BindingContext bindingContext);  }### Answer:
@Test public void whenBinding_thenSetRowLayout() { int resourceId = anyInteger(); when(bindingContext.getContext()).thenReturn(context); when(staticResourceAttribute.getResourceId(context)).thenReturn(resourceId); staticLayoutAttribute.bindTo(bindingContext); verify(rowLayoutUpdater).updateRowLayout(resourceId); }