{
for (String variation : variations)
{
ResourceReference reference = new PackageResourceReference(scope,
"resource.txt", locale, style, variation);
UrlAttributes urlAttributes = reference.getUrlAttributes();
assertEquals(locale, urlAttributes.getLocale());
assertEquals(style, urlAttributes.getStyle());
assertEquals(variation, urlAttributes.getVariation());
ByteArrayResponse byteResponse = new ByteArrayResponse();
Attributes mockAttributes = new Attributes(tester.getRequestCycle()
.getRequest(), byteResponse);
reference.getResource().respond(mockAttributes);