}
private JsUri mockJsUri(String container, RenderingContext context, boolean debug,
boolean jsload, boolean nocache, String onload, int refresh, UriStatus status,
String... libs) {
JsUri result = mock(JsUri.class);
expect(result.getContainer()).andReturn(container).anyTimes();
expect(result.getContext()).andReturn(context).anyTimes();
expect(result.getOnload()).andReturn(onload).anyTimes();
expect(result.getRefresh()).andReturn(refresh).anyTimes();
expect(result.isDebug()).andReturn(debug).anyTimes();
expect(result.isNoCache()).andReturn(nocache).anyTimes();
expect(result.isJsload()).andReturn(jsload).anyTimes();
expect(result.getStatus()).andReturn(status).anyTimes();
if (libs != null) {
expect(result.getLibs()).andReturn(Lists.newArrayList(libs)).anyTimes();
}
return result;
}