@Test
public void testToList() {

    ColumnStore<Node> store = new ColumnStore<Node>(Node.class, false);
    Assert.assertEquals(store.toList().size(), 0);
    ColumnImpl col11 = new ColumnImpl("0", Integer.class, null, null, Origin.DATA, false, false);
    ColumnImpl col12 = new ColumnImpl("1", String.class, "title", "default", Origin.PROPERTY, false, false);
    store.addColumn(col11);
    store.addColumn(col12);
    List<Column> cols = store.toList();
    Assert.assertEquals(cols.size(), 2);
    Assert.assertSame(cols.get(0), col11);
    Assert.assertEquals(cols.get(1), col12);
}