@Test(expected = DDMDataProviderException.class)
public void testThrowDDMDataProviderException() throws Exception {

	DDMDataProviderRequest.Builder builder =
		DDMDataProviderRequest.Builder.newBuilder();
	DDMDataProviderRequest ddmDataProviderRequest = builder.withLocale(
		_locale
	).withCompanyId(
		1L
	).build();
	_workflowDefinitionsDataProvider.workflowDefinitionManager =
		_workflowDefinitionManager;
	when(
		_workflowDefinitionManager.getActiveWorkflowDefinitions(
			1, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)
	).thenThrow(
		WorkflowException.class
	);
	_workflowDefinitionsDataProvider.getData(ddmDataProviderRequest);
}