### Question:
JoypadController implements Runnable, UncaughtExceptionHandler { public synchronized void disconnect() { LOGGER.debug("Disconnetting..."); if (connected) { connected = !connected; } } private  JoypadController(String device); static JoypadController getInstance(String device); synchronized boolean connect(); synchronized void disconnect(); void addEventListener(JoypadEventListener eventListener); void removeEventListener(JoypadEventListener eventListener); @Override void run(); @Override void uncaughtException(Thread t, Throwable e);  }### Answer:
@Test public void testDisconnect() throws IOException { joypadController.disconnect(); }