}
assertEquals(3, deps.size());
String key1 = "res"; // This is the name of the field
String api = ParameterizedAE2.DummyResource.class.getName();
ExternalResourceDependency d1 = deps.get(key1);
assertNotNull(d1);
assertEquals(key1, d1.getKey());
assertEquals(api, d1.getInterfaceName());
assertEquals(false, d1.isOptional());
String key2 = ParameterizedAE2.RES_OTHER;
ExternalResourceDependency d2 = deps.get(key2);
assertNotNull(d2);
assertEquals(key2, d2.getKey());
assertEquals(api, d2.getInterfaceName());
assertEquals(false, d2.isOptional());
String key3 = ParameterizedAE2.RES_OPTIONAL;
ExternalResourceDependency d3 = deps.get(key3);
assertNotNull(3d);
assertEquals(key3, d3.getKey());
assertEquals(api, d3.getInterfaceName());
assertEquals(true, d3.isOptional());
}