title: How to use qualifiers in roboelectic to test locale?
body: <p>I've read this: <a href="http://robolectric.blogspot.co.uk/2013/05/configuring-robolectric-20.html" rel="nofollow">http://robolectric.blogspot.co.uk/2013/05/configuring-robolectric-20.html</a>
  and the <a href="http://robolectric.org/javadoc/org/robolectric/annotation/Config.html" rel="nofollow">config annotation</a></p>
  
  <p>And it seems simple, but I can't get the right result, the assert fails with expected "fr" but was "en".</p>
  
  <pre><code>import android.app.Activity;
  import android.content.res.Configuration;
  import android.content.res.Resources;
  import org.junit.Before;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.robolectric.Robolectric;
  import org.robolectric.RobolectricTestRunner;
  import org.robolectric.annotation.Config;
  
  import java.util.Locale;
  
  import static junit.framework.Assert.*;
  
  @RunWith(RobolectricTestRunner.class)
  @Config(manifest=Config.NONE)
  public class LocaleTest {
  
      @Config(qualifiers = "fr")
      @Test
      public void shouldBeFrench() {
          resources = new Activity().getResources();
          Locale locale = resources.getConfiguration().locale;
          assertEquals("fr", locale.getLanguage());
      }
  }
  </code></pre>