DDMRESTDataProvider implements DDMDataProvider { @Reference(unbind = "-") protected void setMultiVMPool(MultiVMPool multiVMPool) { _portalCache = (PortalCache<String, DDMDataProviderResponse>) multiVMPool.getPortalCache(DDMRESTDataProvider.class.getName()); }  @Override DDMDataProviderResponse getData(
			DDMDataProviderRequest ddmDataProviderRequest); @Override Class<?> getSettings();  }
@Test public void testSetMultiVMPool() { MultiVMPool multiVMPool = mock(MultiVMPool.class); MultiVMPool spy = spy(multiVMPool); _ddmRESTDataProvider.setMultiVMPool(spy); ArgumentCaptor<String> argumentCaptor = ArgumentCaptor.forClass( String.class); Mockito.verify( spy, Mockito.times(1) ).getPortalCache( argumentCaptor.capture() ); Assert.assertEquals( DDMRESTDataProvider.class.getName(), argumentCaptor.getValue()); }