@Test
public void testOnBeforeRemove() throws PortalException {

	when(
		_ddmFormInstanceReportLocalService.
			getFormInstanceReportByFormInstanceId(Mockito.anyLong())
	).thenThrow(
		new NoSuchFormInstanceReportException()
	);
	DDMFormInstance ddmFormInstance = mock(DDMFormInstance.class);
	when(
		ddmFormInstance.getFormInstanceId()
	).thenReturn(
		0L
	);
	_ddmFormInstanceModelListener.onBeforeRemove(ddmFormInstance);
}