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);
String fileContent = new String(byteResponse.getBytes());
if (locale != null)
{
assertTrue(fileContent.contains(locale.getLanguage()));
if (locale.getCountry() != null)
{