@Test
public void extractFromMap_withNonAdConfigurationObjectInMap_shouldReturnNull() throws Exception {

    Map<String, Object> map = new HashMap<String, Object>();
    map.put(AdFetcher.AD_CONFIGURATION_KEY, "not_an_ad_configuration");
    AdConfiguration returnValue = AdConfiguration.extractFromMap(map);
    assertThat(returnValue).isEqualTo(null);
}