### Question:
Workspaces implements ListWorkspacesCommand.WorkspaceFactory { public Workspace createWorkspace(String name, String computer, String owner, String comment) { return new Workspace(name, computer, owner, comment); } Workspaces(Server server); Workspace getWorkspace(String workspaceName); boolean exists(String workspaceName); boolean exists(Workspace workspace); String getWorkspaceMapping(final String localPath); Workspace newWorkspace(final String workspaceName, final String serverPath, Collection<String> cloakedPaths, final String localPath); void deleteWorkspace(Workspace workspace); Workspace createWorkspace(String name, String computer, String owner, String comment);  }### Answer:
@Test public void assertWorkspaceFactory() { ListWorkspacesCommand.WorkspaceFactory factory = new Workspaces(server); Workspace workspace = factory.createWorkspace("name", "computer", "owner", "comment"); assertEquals("Workspace name was incorrect", "name", workspace.getName()); assertEquals("Workspace comment was incorrect", "comment", workspace.getComment()); }