### Question:
DriverConnection implements Connection { @Override public void disconnect() { synchronized (serialInterface) { if (!serialInterface.isOpen()) { return; } serialInterface.decreaseConnectionCounter(); } } DriverConnection(ConnectionInterface serialInterface, int mBusAddress, SecondaryAddress secondaryAddress); @Override List<ChannelScanInfo> scanForChannels(String settings); @Override void disconnect(); @Override Object read(List<ChannelRecordContainer> containers, Object containerListHandle, String samplingGroup); @Override void startListening(List<ChannelRecordContainer> containers, RecordsReceivedListener listener); @Override Object write(List<ChannelValueContainer> containers, Object containerListHandle);  }### Answer:
@Test public void testDisconnect() throws Exception { DriverConnection mBusConnection = newConnection("/dev/ttyS100:5"); mBusConnection.disconnect(); mBusConnection.disconnect(); }