### Question:
KeyStoreAdaptor extends QBeanSupport implements KeyStoreAdaptorMBean { protected void destroyService () throws Exception { NameRegistrar.unregister (getName ()); } KeyStoreAdaptor(); void setImpl(String clazz); String getImpl(); static final String DEFAULT_IMPL; }### Answer:
@Test public void testStopService() throws Throwable { KeyStoreAdaptor keyStoreAdaptor = new KeyStoreAdaptor(); keyStoreAdaptor.setName("testKeyStoreAdaptorName"); keyStoreAdaptor.destroyService(); assertEquals("testKeyStoreAdaptorName", keyStoreAdaptor.getName(), "keyStoreAdaptor.getName()"); }