    @Test
    public void testHasDependency() throws Exception {


        final EssentialsDependency dependency = new DependencyRestful();
        dependency.setTargetPom("cms");
        dependency.setArtifactId("hippo-plugins-shared");
        dependency.setVersion("1.01.00-SNAPSHOT");
        dependency.setGroupId("org.onehippo.cms7.essentials");
        assertEquals(TargetPom.CMS, dependency.getDependencyTargetPom());
        final boolean hasDep = DependencyUtils.hasDependency(getContext(), dependency);
        assertTrue("Expected hippo-plugins-shared version", hasDep);

    }