EasyMock.expect(gadget.getContext()).andReturn(gadgetContext).anyTimes();
}
private void expectFeatureLookup() throws GadgetException {
EasyMock.expect(featureRegistry.getFeatures(EasyMock.<Collection<String>>anyObject())).andReturn(
ImmutableSet.of(new GadgetFeature("swfobject",
ImmutableList.of(
JsLibrary.create(JsLibrary.Type.INLINE, "swfobject()", "swfobject", null)),
Collections.<String>emptySet())));
EasyMock.expect(gadgetContext.getContainer()).andReturn("default");
}