### Question:
AndroidNfcReader extends AbstractSelectionLocalReader implements NfcAdapter.ReaderCallback { @Override protected byte[] getATR() { byte[] atr = tagProxy.getATR(); LOG.debug("ATR : " + Arrays.toString(atr)); return atr != null && atr.length > 0 ? atr : null; } 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 getATR() { insertSe(); byte[] atr = new byte[] {(byte) 0x90, 0x00}; when(tagProxy.getATR()).thenReturn(atr); assertEquals(atr, reader.getATR()); }