@Test
public void testReturnsSupportedLocales() {
new MockFacesContext().set();
FacesContext ctx = FacesContext.getCurrentInstance();
Iterator<Locale> supportedLocales = ctx.getApplication().getSupportedLocales();
List<Locale> supportedLocales2 = new LocaleProducer().getSupportedLocales(ctx);
assertArrayEquals(toArray(supportedLocales), toArray(supportedLocales2.iterator()));
}