ResourcePluginManager { @VisibleForTesting public boolean isConfiguredResourceName(String resourceName) { Map<String, ResourceInformation> configuredResourceTypes = ResourceUtils.getResourceTypes(); if (!configuredResourceTypes.containsKey(resourceName)) { return false; } return true; }  void initialize(Context context); void initializePluggableDevicePlugins(Context context,
      Configuration configuration,
      Map<String, ResourcePlugin> pluginMap); @VisibleForTesting // Check if the implemented interfaces' signature is compatible void checkInterfaceCompatibility(Class<?> expectedClass,
      Class<?> actualClass); @VisibleForTesting boolean isConfiguredResourceName(String resourceName); @VisibleForTesting void setDeviceMappingManager(
      DeviceMappingManager deviceMappingManager); DeviceMappingManager getDeviceMappingManager(); void cleanup(); synchronized Map<String, ResourcePlugin> getNameToPlugins();  }
@Test(timeout = 30000) public void testRequestedResourceNameIsConfigured() { ResourcePluginManager rpm = new ResourcePluginManager(); String resourceName = "a.com/a"; assertThat(rpm.isConfiguredResourceName(resourceName)).isFalse(); resourceName = "cmp.com/cmp"; assertThat(rpm.isConfiguredResourceName(resourceName)).isTrue(); }