private void attempt(String name) throws Exception
{
Registry reg = buildFrameworkRegistry("BeanService.xml");
Reverser r = (Reverser) reg.getService(name, Reverser.class);
assertEquals("DNIMEVIH", r.reverse("HIVEMIND"));
// Call reverse a second time to check for HIVEMIND-118
r.reverse("HIVEMIND");
reg.shutdown();
try
{
r.reverse("SHUTDOWN");
unreachable();
}
catch (ApplicationRuntimeException ex)
{
}