public void testBuildLanguages() {
Variant variant1 = new Variant(null, Locale.ENGLISH, null);
Variant variant2 = new Variant(null, Locale.CHINESE, null);
VariantListBuilder builder = new VariantListBuilderImpl();
List<Variant> list = builder.languages(Locale.ENGLISH).add().build();
assertList(new Variant[] {variant1}, list);
list = builder.languages(Locale.ENGLISH, Locale.CHINESE).add().build();
assertList(new Variant[] {variant1, variant2}, list);
}