@Test
public void testUsesTheValuesFromConfigIfNoAdaptiveMediasArePresent()
	throws Exception {

	int auto = 0;
	_addConfigs(
		_createAMImageConfigurationEntry("hauto", auto, 600, "hautoURL"),
		_createAMImageConfigurationEntry("low", 300, 300, "lowURL"),
		_createAMImageConfigurationEntry("normal", 2048, 1024, "normalURL"),
		_createAMImageConfigurationEntry("wauto", 900, auto, "wautoURL"));
	List<MediaQuery> mediaQueries = _mediaQueryProviderImpl.getMediaQueries(
		_fileEntry);
	Assert.assertEquals(mediaQueries.toString(), 3, mediaQueries.size());
	_assertMediaQuery(mediaQueries.get(0), "lowURL", 300);
	_assertMediaQuery(mediaQueries.get(1), "hautoURL", 300, 600);
	_assertMediaQuery(mediaQueries.get(2), "normalURL", 600, 1024);
}