### Question:
VFSRuntimeRegistry extends InMemoryRuntimeRegistry { @Override public void deregisterProvider(final Provider provider) { checkNotNull("provider", provider); deregisterProvider(provider.getId()); } VFSRuntimeRegistry(); @Inject  VFSRuntimeRegistry(final VFSRegistryHelper registryHelper); @Override void registerProvider(final Provider provider); @Override void deregisterProvider(final Provider provider); @Override void deregisterProvider(final String providerId); @Override void registerRuntime(final Runtime runtime); @Override void deregisterRuntime(final RuntimeId runtimeId);  }### Answer:
@Test @Override public void testDeregisterProvider() { prepareProviderTargetPath(); runtimeRegistry.registerProvider(provider); verifyProviderIsRegistered(provider); runtimeRegistry.deregisterProvider(provider); verify(registryHelper, times(1)).deleteBatch(providerTargetPath); verifyProviderIsNotRegistered(provider); }