### Question:
VfsResourceReferenceResolver extends AbstractResourceReferenceResolver { @Override public VfsResourceReference resolve(ExtendedURL extendedURL, ResourceType resourceType, Map<String, Object> parameters) throws CreateResourceReferenceException, UnsupportedResourceReferenceException { List<String> segments = extendedURL.getSegments(); VfsResourceReference vfsReference = new VfsResourceReference(StringUtils.join(segments, "/")); copyParameters(extendedURL, vfsReference); return vfsReference; }  @Override VfsResourceReference resolve(ExtendedURL extendedURL, ResourceType resourceType,
        Map<String, Object> parameters);  }### Answer:
@Test public void resolve() throws Exception { ExtendedURL extendedURL = new ExtendedURL( Arrays.asList("attach:wiki:space.page@attachment", "path1", "path2", "test.txt"), Collections.singletonMap("key", Arrays.asList("value"))); VfsResourceReference reference = this.mocker.getComponentUnderTest().resolve(extendedURL, VfsResourceReference.TYPE, Collections.<String, Object>emptyMap()); VfsResourceReference expected = new VfsResourceReference(URI.create("attach:wiki:space.page@attachment"), "path1/path2/test.txt"); expected.addParameter("key", "value"); assertEquals(expected, reference); }