@Test(description = "Testing exception for invalid xml files", expectedExceptions = {org.apache.axis2.deployment

        .DeploymentException.class})
public void deployInvalidXml() throws DeploymentException, IllegalAccessException {
    deviceTypePluginDeployer.deploy(invalidDeploymentFileData);
}