ScopeHelper { public List<ScopedResource> getScopedResources(String resources) { return resources != null ? getScopedResources(asList(resources.split(","))) : Collections.emptyList(); } ScopeHelper(Logger log); void printScopes(Map<String, Scope> scopes); List<ScopedResource> getScopedResources(String resources); List<ScopedResource> getScopedResources(List<String> resources);  }
@Test void getScopedResourcesFromString() { List<ScopedResource> scopedResources = scopeHelper.getScopedResources(" build/images , java:classpath::build/classes "); verifyScopedResources(scopedResources); }
@Test void getScopedResourcesFromList() { List<ScopedResource> scopedResources = scopeHelper.getScopedResources(asList(" build/images ", " java:classpath::build/classes ")); verifyScopedResources(scopedResources); }