public void testNewsColumnViewModel() throws Exception {
IFolder root = DynamicDAO.save(fFactory.createFolder(null, null, "Root"));
IPreferenceScope prefs = Owl.getPreferenceService().getEntityScope(root);
NewsColumnViewModel model = NewsColumnViewModel.createFrom(new int[] { 5, 4, 3, 6, 1 }, 3, true);
model.saveTo(prefs);
NewsColumnViewModel loadedModel = NewsColumnViewModel.loadFrom(prefs);
assertTrue(loadedModel.isAscending());
assertEquals(3, loadedModel.getSortColumn().ordinal());
List<NewsColumn> columns = loadedModel.getColumns();