### Question:
ServerConfiguration { public void setWorkspaceRoot(final String workspaceRoot) { toFilePath(workspaceRoot) .map(ServerConfiguration::ensureDirectory) .ifPresent(uri -> this.workspaceRootURI = uri); }  URI getWorkspaceRootURI(); void setWorkspaceRootURI(final URI uri); String getWorkspaceRoot(); void setWorkspaceRoot(final String workspaceRoot); Set<String> getWorkspaceEntries(); int getServerPort(); void setServerPort(final int serverPort); static boolean isValidWorkspaceRoot(final String fileUrl); static boolean isValidPort(final Integer port);  }### Answer:
@Test public void setWorkspaceRoot() { File cwd = getCWD(); serverConfiguration.setWorkspaceRoot("."); URI expected = URI.createFileURI(cwd.getAbsolutePath()).appendSegment(""); assertThat(serverConfiguration.getWorkspaceRootURI(), is(expected)); assertThat(serverConfiguration.getWorkspaceRoot(), is(cwd.getAbsolutePath() + "/")); }