### Question:
AndroidNfcReader extends AbstractSelectionLocalReader implements NfcAdapter.ReaderCallback { @Override protected boolean isPhysicalChannelOpen() { return tagProxy != null && tagProxy.isConnected(); } AndroidNfcReader(); Map<String, String> getParameters(); @Override void setParameter(String key, String value); @Override TransmissionMode getTransmissionMode(); @Override void onTagDiscovered(Tag tag); String printTagId(); static final String FLAG_READER_SKIP_NDEF_CHECK; static final String FLAG_READER_NO_PLATFORM_SOUNDS; static final String FLAG_READER_PRESENCE_CHECK_DELAY; }### Answer:
@Test public void isPhysicalChannelOpen() { insertSe(); when(tagProxy.isConnected()).thenReturn(true); assertEquals(true, reader.isPhysicalChannelOpen()); }