@Test
public void testGetDDMDataProviderFromTracker() {

	DDMDataProviderInvokerImpl ddmDataProviderInvokerImpl =
		new DDMDataProviderInvokerImpl();
	DDMDataProviderTracker ddmDataProviderTracker = mock(
		DDMDataProviderTracker.class);
	ddmDataProviderInvokerImpl.ddmDataProviderTracker =
		ddmDataProviderTracker;
	DDMDataProviderInstance ddmDataProviderInstance = mock(
		DDMDataProviderInstance.class);
	when(
		ddmDataProviderInstance.getType()
	).thenReturn(
		"rest"
	);
	DDMDataProvider ddmDataProvider = mock(DDMDataProvider.class);
	when(
		ddmDataProviderTracker.getDDMDataProvider("rest")
	).thenReturn(
		ddmDataProvider
	);
	DDMDataProvider result = ddmDataProviderInvokerImpl.getDDMDataProvider(
		"1", Optional.of(ddmDataProviderInstance));
	Assert.assertNotNull(result);
	Mockito.verify(
		ddmDataProviderTracker, Mockito.times(1)
	).getDDMDataProvider(
		"rest"
	);
}