Javadoc
Validates a DependencyDescriptor against a map of dependencies. A
descriptor is valid if there is an entry where the key and the
dependency's class matches the descriptor's fields. If there is no
dependency for the name, the descriptor is only valid if it is
optional.
If the dependecy's class does not match the descriptor, it is
invalid.