### Question:
ProviderServiceImpl implements ProviderService { @Override public void deleteProvider(final ProviderKey providerKey) { runtimeProvisioningService.unregisterProvider(providerKey.getId()); } ProviderServiceImpl(); @Inject  ProviderServiceImpl(final RuntimeProvisioningServiceBackend runtimeProvisioningService,
                               final ProviderConverterFactory providerConverterFactory); @Override Collection<Provider> getProviders(final ProviderType providerType); @Override Collection<ProviderKey> getProvidersKey(final ProviderType providerType); @Override void createProvider(final ProviderType providerType,
                               final ProviderConfiguration configuration); @Override void deleteProvider(final ProviderKey providerKey); @Override Provider getProvider(final ProviderKey providerKey);  }### Answer:
@Test public void testDeleteProvider() { ProviderKey providerKey = mock(ProviderKey.class); when(providerKey.getId()).thenReturn(PROVIDER_ID); service.deleteProvider(providerKey); verify(runtimeProvisioningService, times(1)).unregisterProvider(PROVIDER_ID); }