@Test
public void testCreatesAMediaQuery() throws Exception {

	_addConfigs(
		_createAMImageConfigurationEntry("uuid", 800, 1989, "adaptiveURL"));
	List<MediaQuery> mediaQueries = _mediaQueryProviderImpl.getMediaQueries(
		_fileEntry);
	Assert.assertEquals(mediaQueries.toString(), 1, mediaQueries.size());
	MediaQuery mediaQuery = mediaQueries.get(0);
	Assert.assertEquals("adaptiveURL", mediaQuery.getSrc());
	List<Condition> conditions = mediaQuery.getConditions();
	Assert.assertEquals(conditions.toString(), 1, conditions.size());
	_assertCondition(conditions.get(0), "max-width", "1989px");
}