@Test
public void constructor_shouldSetDeviceLocale() throws Exception {

    Robolectric.getShadowApplication().getResources().getConfiguration().locale = Locale.FRANCE;
    subject = new AdConfiguration(context);
    assertThat(subject.getDeviceLocale()).isEqualTo("fr_FR");
}