### Question:
XBeanFileResolver { public String toUrlCompliantAbsolutePath(final String configUri) { if (!isXBeanFile(configUri)) return configUri; String filePath = extractFilePath(configUri); return XBEAN_FILE + toAbsolutePath(filePath); }  boolean isXBeanFile(final String configUri); String toUrlCompliantAbsolutePath(final String configUri);  }### Answer:
@Test public void urlToXBeanFileShouldBeResolvedToAbsolutePath() throws IOException { XBeanFileResolver xBeanFileResolver = new XBeanFileResolver(); String currentDirectory = getCurrentDirectoryLinuxStyle(); String relativeXBeanFilePath = "src/main/resources/activemq.xml"; String expectedUrl = XBEAN_FILE + currentDirectory + "/" + relativeXBeanFilePath; String actualUrl = xBeanFileResolver.toUrlCompliantAbsolutePath(XBEAN_FILE + relativeXBeanFilePath); assertEquals(expectedUrl, actualUrl); }