Deployment deploymentAnnotation = deploymentMethod.getAnnotation(Deployment.class);
DeploymentDescription deployment = null;
if(Archive.class.isAssignableFrom(deploymentMethod.getReturnType()))
{
deployment = new DeploymentDescription(deploymentAnnotation.name(), invoke(Archive.class, deploymentMethod));
deployment.shouldBeTestable(deploymentAnnotation.testable());
}
else if(Descriptor.class.isAssignableFrom(deploymentMethod.getReturnType()))
{
deployment = new DeploymentDescription(deploymentAnnotation.name(), invoke(Descriptor.class, deploymentMethod));
//deployment.shouldBeTestable(false);