* bundle {a, b->a} and {c->a, d->c->a}, render [priority(b), d], should render [ab, cd]
*/
@Test
public void testTwoBundlesWithDependenciesAndPriority()
{
HeaderItem bundleAB = Application.get()
.getResourceBundles()
.addJavaScriptBundle(Application.class, "ab.js", new ResourceReferenceA(),
new ResourceReferenceB());
HeaderItem bundleCD = Application.get()
.getResourceBundles()
.addJavaScriptBundle(Application.class, "cd.js", new ResourceReferenceC(),
new ResourceReferenceD());
aggregator.render(new PriorityHeaderItem(forReference(new ResourceReferenceB())));
aggregator.render(forReference(new ResourceReferenceD()));