    @Test
    public void testPlannedUsingGroovyConfiguration() throws URISyntaxException, ResolverException, ConfigurationException, IOException {

        ServiceDeployment deployment = new ServiceDeployment();
        deployment.setConfig(getConfigDir()+"/PlannedConfig.groovy");
        ServiceElement service = ServiceElementFactory.create(deployment, new File(getConfigDir()+"/PlannedConfig.groovy"));
        Assert.assertTrue(service.getPlanned()==10);
        Assert.assertTrue(service.getMaxPerMachine()==1);
        Assert.assertTrue(service.getProvisionType() == ServiceElement.ProvisionType.DYNAMIC);
    }