*/
private Testcase getXmlTestModel(Project project, String packageName, String testName) {
String xmlSource = getSourceCode(project, packageName, testName, TestCaseType.XML);
if (!StringUtils.hasText(xmlSource)) {
throw new CitrusAdminRuntimeException("Failed to get XML source code for test: " + packageName + "." + testName);
}
try {
return ((SpringBeans) unmarshaller.unmarshal(new StringSource(xmlSource))).getTestcase();
} catch (IOException e) {
throw new CitrusAdminRuntimeException("Failed to unmarshal test case from Spring XML bean definition", e);
}
}