### Question:
AcmFileSystemResourceFactory implements ResourceFactory { @Override public Resource getResource(String host, String path) throws NotAuthorizedException, BadRequestException { log.trace("host: {}, path: {}", host, path); Matcher m = realDocumentUrl.matcher(path); if (m.matches()) { log.debug("The path {} seems to be a real file request", path); String noExtensionPath = removeFileExtension(path); String strippedPath = noExtensionPath.substring(path.indexOf(filterMapping) + filterMapping.length()); if (strippedPath.endsWith("/")) { strippedPath = strippedPath.substring(0, strippedPath.length() - 1); } log.trace("stripped path: {}", strippedPath); ResourceHandler handler = getResourceHandler(strippedPath); return handler.getResource(host, strippedPath); } else { log.debug("The path {} seems to be an list folder structure request or OPTIONS request", path); if (acmRootResource == null) { acmRootResource = new AcmRootResource(this); } return acmRootResource; } }  @Override Resource getResource(String host, String path); String getCmisFileId(EcmFile ecmFile); EcmFileDao getFileDao(); void setFileDao(EcmFileDao fileDao); void setFolderAndFilesUtils(FolderAndFilesUtils folderAndFilesUtils); void setFilterMapping(String filterMapping); void setFileExtensionPattern(Pattern fileExtensionPattern); AcmWebDAVSecurityManager getSecurityManager(); void setSecurityManager(AcmWebDAVSecurityManager securityManager); Long getMaxAgeSeconds(); void setMaxAgeSeconds(Long maxAgeSeconds); LockManager getLockManager(); void setLockManager(LockManager lockManager); EcmFileTransaction getEcmFileTransaction(); void setEcmFileTransaction(EcmFileTransaction ecmFileTransaction); MuleContextManager getMuleContextManager(); void setMuleContextManager(MuleContextManager muleContextManager); AuthenticationTokenService getAuthenticationTokenService(); void setAuthenticationTokenService(AuthenticationTokenService authenticationTokenService); CmisConfigUtils getCmisConfigUtils(); void setCmisConfigUtils(CmisConfigUtils cmisConfigUtils);  }### Answer:
@Test public void getResource_returnsOptionsResourceForNonFileRequests() throws Exception { String host = "www.dead.net"; String path = "/123-456-78-90/FILE/EDIT_WORD_LOCK"; Resource resource = unit.getResource(host, path); assertTrue(resource instanceof AcmRootResource); }
@Test public void getResource_returnsOptionsForUrlThatHasAStringBeforeTheNumber() throws Exception { String host = "www.dead.net"; String path = "/123-456-78-90/FILE/EDIT_WORD_LOCK/jgarcia12345.docx"; Resource resource = unit.getResource(host, path); assertTrue(resource instanceof AcmRootResource); }