@Test
public void testFetchDDMDataProviderInstanceNotFound2() throws Exception {

	DDMDataProviderInstanceService ddmDataProviderInstanceService = mock(
		DDMDataProviderInstanceService.class);
	_ddmRESTDataProvider.ddmDataProviderInstanceService =
		ddmDataProviderInstanceService;
	when(
		ddmDataProviderInstanceService.fetchDataProviderInstanceByUuid("1")
	).thenReturn(
		null
	);
	DDMDataProviderInstance ddmDataProviderInstance = mock(
		DDMDataProviderInstance.class);
	when(
		ddmDataProviderInstanceService.fetchDataProviderInstance(1L)
	).thenReturn(
		ddmDataProviderInstance
	);
	Optional<DDMDataProviderInstance> optional =
		_ddmRESTDataProvider.fetchDDMDataProviderInstance("1");
	Assert.assertTrue(optional.isPresent());
}