// 1. Choose a locale that displays furniture dimensions in inches
Locale.setDefault(Locale.US);
// Read default user preferences
UserPreferences preferences = new DefaultUserPreferences();
// Check the current unit isn't centimeter
LengthUnit currentUnit = preferences.getLengthUnit();
assertFalse("Unit is in centimeter", currentUnit == LengthUnit.CENTIMETER);
// Get furniture catalog
FurnitureCatalog catalog = preferences.getFurnitureCatalog();
// 2. Create a home that contains furniture matching catalog furniture