JkScopedDependency { public boolean isInvolvedIn(JkScope scope) { if (scopeMapping == null) { return scope.isInOrIsExtendingAnyOf(scopes); } return scope.isInOrIsExtendingAnyOf(scopeMapping.getEntries()); } private  JkScopedDependency(JkDependency dependency, Set<JkScope> scopes,
            JkScopeMapping scopeMapping); @SuppressWarnings("unchecked") static JkScopedDependency of(JkModuleDependency dependency, JkScopeMapping scopeMapping); static JkScopedDependency of(JkDependency dependency, JkScope... scopes); static JkScopedDependency of(JkDependency dependency, Set<JkScope> scopes); JkDependency getDependency(); boolean isInvolvedIn(JkScope scope); boolean isInvolvedInAnyOf(Iterable<JkScope> scopes); boolean isInvolvedInAnyOf(JkScope... scopes); ScopeType getScopeType(); Set<JkScope> getScopes(); JkScopedDependency withScopes(Set<JkScope> scopes); JkScopedDependency withScopeMapping(JkScopeMapping scopeMapping); JkScopedDependency withScopes(JkScope... scopes); JkScopeMapping getScopeMapping(); JkScopedDependency withDependency(JkDependency dependency); @Override String toString();  }
@Test public void testIsInvolvedIn() { final JkModuleDependency dep = JkModuleDependency.of("org.hibernate:hibernate-core:3.0.+"); final JkScopedDependency runtimeDep = JkScopedDependency.of(dep, RUNTIME); assertTrue(runtimeDep.isInvolvedIn(RUNTIME)); assertTrue( "COMPILE does not inherit jump RUNTIME", !runtimeDep.isInvolvedIn(COMPILE)); assertTrue(runtimeDep.isInvolvedIn(TEST)); final JkScopedDependency providedDep = JkScopedDependency.of(dep, PROVIDED); assertTrue(!providedDep.isInvolvedIn(RUNTIME)); }