### Question:
HashedFilesystemStorageLocation implements StorageLocation { public void setBase(String base) { this.base = base.replaceFirst(": if (!this.base.endsWith("/")) { this.base += "/"; } baseUri = URI.create(this.base).normalize(); if (baseUri.getScheme() == null) { this.base = "file:" + base; baseUri = URI.create(this.base).normalize(); } else if (!"file".equals(baseUri.getScheme())) { throw new IllegalArgumentException("Only file URIs are acceptable in locations of type " + getClass().getName()); } else { this.base = baseUri.toString(); } }  @Override String getId(); @Override String getName(); @Override StorageType getStorageType(); String getBase(); URI getBaseUri(); void setBase(String base); void setId(String id); void setName(String name); @Override URI getStorageUri(PID pid); @Override boolean isValidUri(URI uri); static final String TYPE_NAME; }### Answer:
@Test(expected = IllegalArgumentException.class) public void baseFieldWithInvalidScheme() { String assignedBase = "http: loc.setBase(assignedBase); }