### Question:
DefaultConcatUriManager implements ConcatUriManager { public List<ConcatData> make(List<ConcatUri> resourceUris, boolean isAdjacent) { List<ConcatData> concatUris = Lists.newArrayListWithCapacity(resourceUris.size()); if (resourceUris.isEmpty()) { return concatUris; } ConcatUri exemplar = resourceUris.get(0); String container = exemplar.getContainer(); for (ConcatUri ctx : resourceUris) { concatUris.add(makeConcatUri(ctx, isAdjacent, container)); } return concatUris; } @Inject  DefaultConcatUriManager(ContainerConfig config, @Nullable Versioner versioner); @Inject(optional = true) void setUseStrictParsing(
      @Named("shindig.uri.concat.use-strict-parsing") boolean useStrict); @Inject(optional = true) void setUrlMaxLength(
      @Named("org.apache.shindig.gadgets.uri.urlMaxLength") int urlMaxLength); @Inject(optional = true) void setAuthority(Authority authority); int getUrlMaxLength(); List<ConcatData> make(List<ConcatUri> resourceUris,
      boolean isAdjacent); ConcatUri process(Uri uri); static final String CONCAT_HOST_PARAM; static final String CONCAT_PATH_PARAM; static final String CONCAT_JS_SPLIT_PARAM; static final String CONCAT_JS_EVAL_TPL; }### Answer:
@Test(expected = UnsupportedOperationException.class) public void typeCssSplitNotSupported() throws Exception { Gadget gadget = mockGadget(false, false); DefaultConcatUriManager manager = makeManager("host.com", "/foo", "token", null); List<List<Uri>> resourceUris = ImmutableList.of(RESOURCES_ONE); manager.make(fromList(gadget, resourceUris, ConcatUriManager.Type.CSS), false); }
@Test(expected = RuntimeException.class) public void typeJsMissingHostConfig() throws Exception { Gadget gadget = mockGadget(false, false); DefaultConcatUriManager manager = makeManager(null, "/foo", "token", null); List<List<Uri>> resourceUris = ImmutableList.<List<Uri>>of(ImmutableList.of(RESOURCE_1)); manager.make(fromList(gadget, resourceUris, ConcatUriManager.Type.JS), false); }
@Test(expected = RuntimeException.class) public void typeJsMissingPathConfig() throws Exception { Gadget gadget = mockGadget(false, false); DefaultConcatUriManager manager = makeManager("host.com", null, "token", null); List<List<Uri>> resourceUris = ImmutableList.<List<Uri>>of(ImmutableList.of(RESOURCE_1)); manager.make(fromList(gadget, resourceUris, ConcatUriManager.Type.JS), false); }
@Test public void typeJsMissingSplitTokenConfig() throws Exception { Gadget gadget = mockGadget(false, false); DefaultConcatUriManager manager = makeManager("host.com", "/foo", null, null); List<List<Uri>> resourceUris = ImmutableList.<List<Uri>>of(ImmutableList.of(RESOURCE_1)); List<ConcatData> concatUris = manager.make(fromList(gadget, resourceUris, ConcatUriManager.Type.JS), false); assertEquals(1, concatUris.size()); assertEquals(1, concatUris.get(0).getUris().size()); assertNull(concatUris.get(0).getUris().get(0).getQueryParameter(Param.JSON.getKey())); }