@Test
public void unsupportedFeaturesPopulated() throws Exception {
// Test only for gadget case; above tests are sufficient to ensure
// that type and RenderingContext filter results properly.
setupFullRegistry("gadget", null);
GadgetContext ctx = getCtx(RenderingContext.GADGET, null);
List<String> needed = Lists.newArrayList("nodep", "does-not-exist");
List<String> unsupported = Lists.newLinkedList();
List<FeatureResource> resources = registry.getFeatureResources(ctx, needed, unsupported);
assertEquals(1, resources.size());
assertEquals("nodep", resources.get(0).getContent());