File file = TestFileUtils.createTempFile(this, ".xml", "<virtualhosts><virtualhost><name>" + name + "</name><" + name
+ "></" + name + "></virtualhost></virtualhosts>");
attributes.put(VirtualHost.CONFIG_PATH, file.getAbsolutePath());
when(entry.getAttributes()).thenReturn(attributes);
VirtualHost host = recoverer.create(null, entry, parent);
assertNotNull("Null is returned", host);
assertEquals("Unexpected name", getName(), host.getName());
}