@Test
public void testProcessConfigurationWhenNoAMImageScalerAvailable()
	throws Exception {

	Mockito.when(
		_amImageValidator.isProcessingSupported(_fileVersion)
	).thenReturn(
		true
	);
	AMImageConfigurationEntry amImageConfigurationEntry =
		new AMImageConfigurationEntryImpl(
			RandomTestUtil.randomString(), RandomTestUtil.randomString(),
			Collections.emptyMap());
	Mockito.when(
		_amImageConfigurationHelper.getAMImageConfigurationEntries(
			Mockito.anyLong())
	).thenReturn(
		Collections.singleton(amImageConfigurationEntry)
	);
	Mockito.when(
		_amImageConfigurationHelper.getAMImageConfigurationEntry(
			Mockito.anyLong(), Mockito.anyString())
	).thenReturn(
		Optional.of(amImageConfigurationEntry)
	);
	Mockito.when(
		_amImageScalerTracker.getAMImageScaler(Mockito.anyString())
	).thenReturn(
		null
	);
	_amImageProcessorImpl.process(
		_fileVersion, RandomTestUtil.randomString());
	Mockito.verify(
		_amImageEntryLocalService, Mockito.never()
	).addAMImageEntry(
		Mockito.any(AMImageConfigurationEntry.class),
		Mockito.any(FileVersion.class), Mockito.anyInt(), Mockito.anyInt(),
		Mockito.any(InputStream.class), Mockito.anyLong()
	);
}