expect(denied.getName()).andReturn("hello");
expect(gadgetAdminStore.checkFeatureAdminInfo(isA(Gadget.class))).andReturn(true);
expect(gadgetAdminStore.isAllowedFeature(eq(denied), isA(Gadget.class))).andReturn(false);
replay();
FeatureResource fooResource = inline("foo-content", "foo-debug");
expectFeatureCalls(gadget,
ImmutableList.of(fooResource),
libs,
ImmutableList.of(fooResource, inline("bar-c", "bar-d"), inline("baz-c", "baz-d")));