MockClassLoaderPolicy policy = createMockClassLoaderPolicy();
policy.setPrefix("a/");
policy.setPath("com/acme/p1");
MockClassLoaderPolicy policy2 = createMockClassLoaderPolicy();
policy2.setDelegates(Collections.singletonList(new FilteredDelegateLoader(policy)));
system.registerClassLoaderPolicy(policy);
ClassLoader classLoader = system.registerClassLoaderPolicy(policy2);
assertGetResources("com/acme/p1/testResource", classLoader, "a/");