@Test
public void testGetThumbnailFileSizeDoesNotTriggerAMProcessorWhenInvalidSize()
	throws Exception {

	Mockito.when(
		_amImageFinder.getAdaptiveMediaStream(Mockito.any(Function.class))
	).thenAnswer(
		invocation -> Stream.empty()
	);
	Mockito.when(
		_amImageMimeTypeProvider.isMimeTypeSupported(Mockito.anyString())
	).thenReturn(
		true
	);
	Mockito.when(
		_amImageValidator.isValid(_fileVersion)
	).thenReturn(
		false
	);
	_amImageEntryProcessor.getThumbnailFileSize(_fileVersion, 0);
	Mockito.verify(
		_amAsyncProcessor, Mockito.never()
	).triggerProcess(
		Mockito.any(FileVersion.class), Mockito.anyString()
	);
}