}
@Test
public void shouldFireListenerOnChangeToNoRow() throws Exception {
this.dataModel.setRowIndex(0);
DataModelListener listener = mock(DataModelListener.class);
this.dataModel.addDataModelListener(listener);
this.dataModel.setRowIndex(-1);
verify(listener).rowSelected(this.dataModelEvent.capture());
assertThat(this.dataModelEvent.getValue().getRowIndex(), is(-1));
assertThat(this.dataModelEvent.getValue().getRowData(), is(nullValue()));