// Validation
assertTrue("MST messages not logged", results.size() > 0);
// Load VirtualHost list from file.
ServerConfiguration configuration = new ServerConfiguration(_configFile);
List<String> vhosts = configuration.getConfig().getList("virtualhosts.virtualhost.name");
//Validate each vhost logs a creation
results = _monitor.findMatches("MST-1002");
assertEquals("Each vhost did not close its store.", vhosts.size(), results.size());
for (int index = 0; index < results.size(); index++)
{
String result = getLog(results.get(index));
// getSlize will return extract the vhost from vh(/test) -> '/test'
// so remove the '/' to get the name
String vhostName = AbstractTestLogSubject.getSlice("vh", result).substring(1);
// To get the store class used in the configuration we need to know
// the virtualhost name, found above. AND
// the index that the virtualhost is within the configuration.
// we can retrive that from the vhosts list previously extracted.
String fullStoreName = configuration.getConfig().getString("virtualhosts.virtualhost(" + vhosts.indexOf(vhostName) + ")." + vhostName + ".store.class");
// Get the Simple class name from the expected class name of o.a.q.s.s.MMS
String storeName = fullStoreName.substring(fullStoreName.lastIndexOf(".") + 1);
assertTrue("MST-1002 does not contain a store path" + getMessageString(result),