private Version createVersion(boolean subtitled) { Version version = new Version(); Restriction restriction = new Restriction(); restriction.setRestricted(true); version.setManifestedAs(Sets.newHashSet(createEncoding(subtitled))); version.setDuration(Duration.standardMinutes(90)); version.setCanonicalUri("http://nitro.bbc.co.uk/programmes/b00gszl0"); version.setRestriction(restriction); return version; }