AliasedDirectoryResource implements Resource { public String getAlias() { return this.alias; } AliasedDirectoryResource();  AliasedDirectoryResource(File rootDirectory, String alias); @Override URL getResource(String location); @Override InputStream getResourceAsStream(String location); @Override Stream<String> getAllLocations(); String getAlias(); File getRootDirectory(); void setAlias(String alias); void setRootDirectory(File rootDirectory);  }
@Test void testGetAlias() { AliasedDirectoryResource resource = new AliasedDirectoryResource(null, "/alias"); assertEquals("/alias", resource.getAlias()); }