@Test(expected = FormInstanceRecordExporterException.class)
public void testExportCatchException() throws Exception {

	DDMFormInstanceRecordExporterImpl ddmFormInstanceRecordExporterImpl =
		new DDMFormInstanceRecordExporterImpl();
	ddmFormInstanceRecordExporterImpl.ddmFormInstanceRecordLocalService =
		_ddmFormInstanceRecordLocalService;
	when(
		_ddmFormInstanceRecordLocalService.getFormInstanceRecords(
			Matchers.anyLong(), Matchers.anyInt(), Matchers.anyInt(),
			Matchers.anyInt(), Matchers.any(OrderByComparator.class))
	).thenThrow(
		Exception.class
	);
	DDMFormInstanceRecordExporterRequest.Builder builder =
		DDMFormInstanceRecordExporterRequest.Builder.newBuilder(1, "csv");
	ddmFormInstanceRecordExporterImpl.export(builder.build());
}