@Test(expectedExceptions = ClassCastException.class)
public void testAddColumnAnonymousClass() {

    ColumnStore<Node> store = new ColumnStore(Node.class, false);
    store.addColumn(new Column() {
        @Override
        public String getId() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public int getIndex() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public String getTitle() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public Class getTypeClass() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public Origin getOrigin() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isIndexed() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isArray() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public Object getDefaultValue() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isDynamic() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isNumber() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isProperty() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public Table getTable() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public boolean isReadOnly() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public ColumnObserver createColumnObserver(boolean withDiff) {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public Estimator getEstimator() {
            throw new UnsupportedOperationException("Not supported yet.");
        }
        @Override
        public void setEstimator(Estimator estimator) {
            throw new UnsupportedOperationException("Not supported yet.");
        }
    });
}