URLFactoryBuilder { public WorkspaceConfigDto buildDefaultWorkspaceConfig(String name) { Map<String, String> attributes = new HashMap<>(); attributes.put(WORKSPACE_TOOLING_EDITOR_ATTRIBUTE, defaultCheEditor); attributes.put(WORKSPACE_TOOLING_PLUGINS_ATTRIBUTE, defaultChePlugins); return newDto(WorkspaceConfigDto.class).withName(name).withAttributes(attributes); } @Inject  URLFactoryBuilder(
      @Named("che.factory.default_editor") String defaultCheEditor,
      @Named("che.factory.default_plugins") String defaultChePlugins,
      URLFetcher urlFetcher,
      DevfileParser devfileParser); Optional<FactoryDto> createFactoryFromJson(RemoteFactoryUrl remoteFactoryUrl); Optional<FactoryDto> createFactoryFromDevfile(
      RemoteFactoryUrl remoteFactoryUrl,
      FileContentProvider fileContentProvider,
      Map<String, String> overrideProperties); WorkspaceConfigDto buildDefaultWorkspaceConfig(String name); DevfileDto buildDefaultDevfile(String name);  }
@Test public void checkDefaultConfiguration() throws Exception { Map<String, String> attributes = new HashMap<>(); attributes.put(WORKSPACE_TOOLING_EDITOR_ATTRIBUTE, defaultEditor); attributes.put(WORKSPACE_TOOLING_PLUGINS_ATTRIBUTE, defaultPlugin); WorkspaceConfigDto expectedWsConfig = newDto(WorkspaceConfigDto.class).withAttributes(attributes).withName("foo"); WorkspaceConfigDto actualWsConfigDto = urlFactoryBuilder.buildDefaultWorkspaceConfig("foo"); assertEquals(actualWsConfigDto, expectedWsConfig); }