assertTrue(a.state() != null);
boolean exceptionCaught = false;
assertTrue
(a.name() + " not open.not_running.suspended: " + a.state(),
a.state().startsWith("open.not_running.suspended"));
a.resume();
Thread.sleep (1000);
a.resume();
Thread.sleep (1000);
assertTrue(a.name() + " not closed.completed: " + a.state(),
a.state().startsWith("closed.completed"));