@Test(description = "Testing exception for non existing xml file", expectedExceptions = {org.apache.axis2.deployment

        .DeploymentException.class})
public void unDeployInvalidXml() throws DeploymentException, IllegalAccessException {
    deviceTypePluginDeployer.deploy(new DeploymentFileData(new File("src/test/resources/notExist.xml")));
}