assertEquals( new Locale( "en-US" ), locale );
}
@Test
public void testGetLocalesReadsLocalesFromRequest() {
TabrisRequest request = environment.newGetRequest();
request.setHeader( "Accept-Language", "anything" );
request.setLocales( new Locale( "en-US" ), new Locale( "de-DE" ) );
ClientDeviceImpl deviceImpl = new ClientDeviceImpl();
Locale[] locales = deviceImpl.getLocales();
assertEquals( 2, locales.length );