@Test(expected = PortalException.class)
public void testCleanUpPortalException() throws Exception {

	Mockito.when(
		_amImageValidator.isValid(Mockito.any(FileVersion.class))
	).thenReturn(
		true
	);
	Mockito.doThrow(
		PortalException.class
	).when(
		_amImageEntryLocalService
	).deleteAMImageEntryFileVersion(
		Mockito.any(FileVersion.class)
	);
	_amImageProcessorImpl.cleanUp(_fileVersion);
}