UserPreferences preferences = new DefaultUserPreferences();
SwingViewFactory viewFactory = new SwingViewFactory();
ContentManager contentManager = new FileContentManager(preferences);
// Create a home and add a selected piece of furniture to it
Home home = new Home();
PieceOfFurniture firstPiece = preferences.getFurnitureCatalog().
getCategories().get(0).getFurniture().get(0);
HomePieceOfFurniture piece1 = new HomePieceOfFurniture(firstPiece);
home.addPieceOfFurniture(piece1);
home.setSelectedItems(Arrays.asList(new HomePieceOfFurniture [] {piece1}));