@Test
public void testFileEntryGetMediaWithNoAttributes() throws Exception {

	AMImageConfigurationEntry amImageConfigurationEntry =
		new AMImageConfigurationEntryImpl(
			RandomTestUtil.randomString(), RandomTestUtil.randomString(),
			new HashMap<>());
	AMImageQueryBuilder.ConfigurationStatus enabledConfigurationStatus =
		AMImageQueryBuilder.ConfigurationStatus.ENABLED;
	Mockito.when(
		_amImageConfigurationHelper.getAMImageConfigurationEntries(
			_fileVersion.getCompanyId(),
			enabledConfigurationStatus.getPredicate())
	).thenReturn(
		Collections.singleton(amImageConfigurationEntry)
	);
	Mockito.when(
		_fileEntry.getFileVersion()
	).thenReturn(
		_fileVersion
	);
	Mockito.when(
		_fileVersion.getFileName()
	).thenReturn(
		RandomTestUtil.randomString()
	);
	Mockito.when(
		_fileVersion.getMimeType()
	).thenReturn(
		"image/jpeg"
	);
	AMImageEntry amImageEntry = _mockImage(800, 900, 1000L);
	Mockito.when(
		_amImageEntryLocalService.fetchAMImageEntry(
			amImageConfigurationEntry.getUUID(),
			_fileVersion.getFileVersionId())
	).thenReturn(
		amImageEntry
	);
	Mockito.when(
		_amImageMimeTypeProvider.isMimeTypeSupported(Mockito.anyString())
	).thenReturn(
		true
	);
	Stream<AdaptiveMedia<AMImageProcessor>> adaptiveMediaStream =
		_amImageFinderImpl.getAdaptiveMediaStream(
			amImageQueryBuilder -> amImageQueryBuilder.forFileEntry(
				_fileEntry
			).done());
	Assert.assertEquals(1, adaptiveMediaStream.count());
}