### Question:
ResourceConverter implements Converter<Resource> { public ResourceStructure parseStructure(final String str) { final Matcher matcher = RESOURCE_PATTERN.matcher(str); if (!matcher.find()) { logger.info("Did not find any scheme definition in resource path: {}. Using default scheme: {}.", str, _defaultScheme); return new ResourceStructure(_defaultScheme, str); } final String scheme = matcher.group(1); final String path = matcher.group(2); return new ResourceStructure(scheme, path); } ResourceConverter(final DataCleanerConfiguration configuration);  ResourceConverter(final DataCleanerConfiguration configuration, final String defaultScheme);  ResourceConverter(final DataCleanerConfiguration configuration,
            final Collection<? extends ResourceTypeHandler<?>> handlers);  ResourceConverter(final Collection<? extends ResourceTypeHandler<?>> handlers, final String defaultScheme);  ResourceConverter(final DataCleanerConfiguration configuration,
            final Collection<? extends ResourceTypeHandler<?>> handlers, final String defaultScheme);  ResourceConverter(final ResourceTypeHandler<?>... handlers); static String getConfiguredDefaultScheme(); ResourceConverter withExtraHandlers(final Collection<? extends ResourceTypeHandler<?>> extraHandlers); @Override Resource fromString(final Class<?> type, final String serializedForm); @Override String toString(final Resource resource); Collection<ResourceTypeHandler<?>> getResourceTypeHandlers(); @Override boolean isConvertable(final Class<?> type); ResourceStructure parseStructure(final String str); @Deprecated
    static final String DEFAULT_DEFAULT_SCHEME; }### Answer:
@Test public void testParse() throws Exception { final ResourceConverter resourceConverter = new ResourceConverter(configuration); assertEquals("url", resourceConverter.parseStructure("url: assertEquals("foobar", resourceConverter.parseStructure("url: assertEquals("file", resourceConverter.parseStructure("file: assertEquals("c:/blabla", resourceConverter.parseStructure("file: assertEquals("/c:/blabla", resourceConverter.parseStructure("file: }