### Question:
AdapterItemBinding { public int getLayoutResourceId() { return mLayoutResourceId; } AdapterItemBinding(final int layoutResourceId);  AdapterItemBinding(final int layoutResourceId, final Binding binding);  AdapterItemBinding(final int layoutResourceId, final Set<Binding> bindings); void addBinding(final Binding binding); int getLayoutResourceId(); Set<Integer> getResourceIds(); void bind(final Context context, final View view, final Cursor cursor);  }### Answer:
@Test public void getLayoutResourceIdReturnsSameLayoutResourceIdPassedInConstructor(){ AdapterItemBinding adapterItemBinding = new AdapterItemBinding(1); int layoutResourceId = adapterItemBinding.getLayoutResourceId(); assertThat(layoutResourceId).isEqualTo(1); adapterItemBinding = new AdapterItemBinding(2, new TextBinder(0,new ViewModelColumn("TABLE_NAME", "COLUMN_NAME", Column.Type.text))); layoutResourceId = adapterItemBinding.getLayoutResourceId(); assertThat(layoutResourceId).isEqualTo(2); final Set<Binding> bindings = new HashSet<Binding>(); bindings.add(new TextBinder(0, new ViewModelColumn("TABLE_NAME", "COLUMN_NAME_0", Column.Type.text))); bindings.add(new TextBinder(1, new ViewModelColumn("TABLE_NAME", "COLUMN_NAME_1", Column.Type.text))); adapterItemBinding = new AdapterItemBinding(2, bindings); layoutResourceId = adapterItemBinding.getLayoutResourceId(); assertThat(layoutResourceId).isEqualTo(2); }