### Question:
EventViewAttributeBinder implements ViewAttributeBinder { @Override public void bindTo(BindingContext bindingContext) { try { performBind(bindingContext); } catch (RuntimeException e) { throw new AttributeBindingException(attribute.getName(), e); } } EventViewAttributeBinder(Object view, ViewAddOn viewAddOn, 
			EventViewAttribute<Object, ViewAddOn> viewAttribute, EventAttribute attribute); @Override void bindTo(BindingContext bindingContext); @Override void preInitializeView(BindingContext bindingContext);  }### Answer:
@Test public void givenAMatchingCommandWithArgs_whenBinding_thenBindWithTheCommand() { Command commandWithArgs = mock(Command.class); Mockito.<Class<?>> when(viewAttribute.getEventType()).thenReturn(EventType.class); when(attribute.findCommand(bindingContext, EventType.class)).thenReturn(commandWithArgs); viewAttributeBinder.bindTo(bindingContext); verify(viewAttribute).bind(viewAddOn, commandWithArgs, view); }
@Test public void givenAMatchingCommandWithNoArgs_whenBinding_thenBindWithTheCommand() { Command commandWithNoArgs = mock(Command.class); when(attribute.findCommand(bindingContext)).thenReturn(commandWithNoArgs); viewAttributeBinder.bindTo(bindingContext); verify(viewAttribute).bind(viewAddOn, commandWithNoArgs, view); }