public void testStop() throws Exception { setRegistered(); anticipateAfterPropertiesSet(); anticipateStop(); m_mock.replayAll(); m_frontEnd.afterPropertiesSet(); assertTrue(m_frontEnd.isStarted()); m_frontEnd.stop(); assertFalse(m_frontEnd.isStarted()); m_mock.verifyAll(); }