MuseHandler implements Closeable { void connect() { this.setConnectionListener(); this.setBatteryListener(); this.setHorseshoeListener(); this.setAccelerometerListener(); this.setFocusListener(); this.muse.runAsynchronously(); } MuseHandler(Muse muse, @NonNull EventBus bus); void resetFocusState(); @Override void close();  }
@Test public void testConnect(){ this.museHandler.connect(); Mockito.verify(this.muse).runAsynchronously(); }