@Test
public void testFetchDDMDataProviderInstance2() throws Exception {

	DDMDataProviderInvokerImpl ddmDataProviderInvokerImpl =
		new DDMDataProviderInvokerImpl();
	DDMDataProviderInstanceService ddmDataProviderInstanceService = mock(
		DDMDataProviderInstanceService.class);
	ddmDataProviderInvokerImpl.ddmDataProviderInstanceService =
		ddmDataProviderInstanceService;
	DDMDataProviderInstance ddmDataProviderInstance = mock(
		DDMDataProviderInstance.class);
	when(
		ddmDataProviderInstanceService.fetchDataProviderInstance(1)
	).thenReturn(
		ddmDataProviderInstance
	);
	Optional<DDMDataProviderInstance> optional =
		ddmDataProviderInvokerImpl.fetchDDMDataProviderInstanceOptional(
			"1");
	Assert.assertTrue(optional.isPresent());
	Mockito.verify(
		ddmDataProviderInstanceService, Mockito.times(1)
	).fetchDataProviderInstanceByUuid(
		"1"
	);
	Mockito.verify(
		ddmDataProviderInstanceService, Mockito.times(1)
	).fetchDataProviderInstance(
		1
	);
}