@Override
    public String scopeOf(Artifact artifact) {
        return Objects.requireNonNull(dependencyScopes.get(artifact), () -> "Could not lookup scope for " + artifact);
    }
Translates the scope of dependencies when constructing a test bundle.
Used by {@link Artifacts} to determine which artifacts that are provided by the runtime or must be included in the bundle.

Dependencies of scope 'test' are by default translated to 'compile'. Dependencies of other scopes are kept as is.

Default scope translation for 'test' scope dependencies can be overridden through a comma-separated configuration string.
Each substring is a triplet on the form [groupId]:[artifactId]:[scope].
Scope translation overrides affects all transitive dependencies.
The ordering of the triplets determines the priority - only the first matching override will affect a given dependency.

@author bjorncs
bundle-plugin/src/main/java/com/yahoo/container/plugin/util/TestBundleDependencyScopeTranslator.java