List<ConcatData> concatUris =
manager.make(fromList(gadget, resourceUris, type), false);
assertEquals(3, concatUris.size());
for (int i = 0; i < 3; ++i) {
ConcatData uri = concatUris.get(i);
assertEquals(DefaultConcatUriManager.getJsSnippet(splitParam, RESOURCE_1),
uri.getSnippet(RESOURCE_1));
assertEquals(DefaultConcatUriManager.getJsSnippet(splitParam, RESOURCE_2),
uri.getSnippet(RESOURCE_2));
assertEquals(DefaultConcatUriManager.getJsSnippet(splitParam, RESOURCE_3),
uri.getSnippet(RESOURCE_3));
assertNull(uri.getUri().getScheme());
assertEquals(host, uri.getUri().getAuthority());
assertEquals(path, uri.getUri().getPath());
assertEquals(10, uri.getUri().getQueryParameters().size());
assertEquals(CONTAINER, uri.getUri().getQueryParameter(Param.CONTAINER.getKey()));
assertEquals(SPEC_URI.toString(), uri.getUri().getQueryParameter(Param.GADGET.getKey()));
assertEquals(type.getType(), uri.getUri().getQueryParameter(Param.TYPE.getKey()));
assertEquals("0", uri.getUri().getQueryParameter(Param.DEBUG.getKey()));
assertEquals("0", uri.getUri().getQueryParameter(Param.NO_CACHE.getKey()));
assertEquals(type.getType(), uri.getUri().getQueryParameter(Param.TYPE.getKey()));
List<Uri> resList = (i % 2 == 0) ? RESOURCES_ONE : RESOURCES_TWO;
assertEquals(resList.get(0).toString(), uri.getUri().getQueryParameter("1"));
assertEquals(resList.get(1).toString(), uri.getUri().getQueryParameter("2"));
assertEquals(resList.get(2).toString(), uri.getUri().getQueryParameter("3"));
assertEquals(versions[i], uri.getUri().getQueryParameter(Param.VERSION.getKey()));
}
}