### Question:
DynamicLayoutAttribute implements OneWayPropertyViewAttribute<AdapterView<?>, Integer>, AlwaysPreInitializingView { @Override public void updateView(AdapterView<?> view, Integer newItemLayoutId) { rowLayoutUpdater.updateRowLayout(newItemLayoutId); dataSetAdapterUpdater.update(); } DynamicLayoutAttribute(RowLayoutUpdater rowLayoutUpdater, DataSetAdapterUpdater dataSetAdapterUpdater); @Override void updateView(AdapterView<?> view, Integer newItemLayoutId);  }### Answer:
@Test public void whenUpdateView_thenUpdateItemLayoutOnRowLayoutUpdater() { int newItemLayoutId = anyInteger(); DynamicLayoutAttribute dynamicLayoutAttribute = new DynamicLayoutAttribute(rowLayoutUpdater, dataSetAdapterUpdater); dynamicLayoutAttribute.updateView(view, newItemLayoutId); verify(rowLayoutUpdater).updateRowLayout(newItemLayoutId); }
@Test public void whenUpdateView_thenExecuteUpdateOnDataSetAdapterUpdater() { int newItemLayoutId = anyInteger(); DynamicLayoutAttribute dynamicLayoutAttribute = new DynamicLayoutAttribute(rowLayoutUpdater, dataSetAdapterUpdater); dynamicLayoutAttribute.updateView(view, newItemLayoutId); verify(dataSetAdapterUpdater).update(); }