@Test
@SuppressWarnings("unchecked")
public void shouldDelegateToEndTable() {

    MatchResult res = createResult(DataTable.class);
    adapter.onEvent(res);
    verify(handler).endTable(res);
    verify(handler, never()).endCell(any(MatchResult.class));
    verify(handler, never()).endRow(any(MatchResult.class));
}