public void addRow(Object value) {
        log.debug("Adding row value: {}", value);
        if (objectClass != null) {
            final Class<?> valueClass = value.getClass();
            if (!objectClass.isAssignableFrom(valueClass)){
                throw new IllegalArgumentException("Trying to add class: "+valueClass.getName()
                        +"; expecting class: "+objectClass.getName());
            }
        }
        objects.add(value);
        super.fireTableRowsInserted(objects.size() - 1, objects.size() - 1);
    }
@Test
    public void checkAddRow() {
        model.addTableModelListener(events);

        assertModel();

        model.addRow(new Dummy("1", "1", "1"));
        assertModel("1");
        events.assertEvents(
                events.assertEvent()
                    .source(model)
                    .type(TableModelEvent.INSERT)
                    .column(TableModelEvent.ALL_COLUMNS)
                    .firstRow(0)
                    .lastRow(0)
        );

        model.addRow(new Dummy("2", "1", "1"));
        assertModel("1", "2");
        events.assertEvents(
                events.assertEvent()
                    .source(model)
                    .type(TableModelEvent.INSERT)
                    .column(TableModelEvent.ALL_COLUMNS)
                    .firstRow(1)
                    .lastRow(1)
        );
    }