@Test
public void testOnBeforeRemove() throws PortalException {

	when(
		_ddmFormInstanceReportLocalService.
			getFormInstanceReportByFormInstanceId(Mockito.anyLong())
	).thenThrow(
		new NoSuchFormInstanceReportException()
	);
	DDMFormInstanceRecord ddmFormInstanceRecord = mock(
		DDMFormInstanceRecord.class);
	when(
		ddmFormInstanceRecord.getFormInstanceId()
	).thenReturn(
		0L
	);
	_ddmFormInstanceRecordModelListener.onBeforeRemove(
		ddmFormInstanceRecord);
}