import org.apache.cayenne.unit.CayenneResources;
public class EntityResolverTest extends CayenneCase {
public void testObjEntityLookupDuplicates() {
AccessStack stack = CayenneResources
.getResources()
.getAccessStack("GenericStack");
DataMap generic = stack.getDataDomain().getDataMap("generic");
EntityResolver resolver = new EntityResolver(Collections.singleton(generic));
ObjEntity g1 = resolver.getObjEntity("Generic1");
assertNotNull(g1);