@Test
public void testGetDDMDataProviderByInstanceId() {

	DDMDataProviderInvokerImpl ddmDataProviderInvokerImpl =
		new DDMDataProviderInvokerImpl();
	DDMDataProviderTracker ddmDataProviderTracker = mock(
		DDMDataProviderTracker.class);
	ddmDataProviderInvokerImpl.ddmDataProviderTracker =
		ddmDataProviderTracker;
	when(
		ddmDataProviderTracker.getDDMDataProvider(Matchers.anyString())
	).thenReturn(
		null
	);
	DDMDataProvider ddmDataProvider = mock(DDMDataProvider.class);
	when(
		ddmDataProviderTracker.getDDMDataProviderByInstanceId("1")
	).thenReturn(
		ddmDataProvider
	);
	DDMDataProvider result = ddmDataProviderInvokerImpl.getDDMDataProvider(
		"1", Optional.empty());
	Assert.assertNotNull(result);
	Mockito.verify(
		ddmDataProviderTracker, Mockito.times(1)
	).getDDMDataProviderByInstanceId(
		"1"
	);
}