### Question:
AndroidNfcReader extends AbstractSelectionLocalReader implements NfcAdapter.ReaderCallback { @Override protected boolean protocolFlagMatches(SeProtocol protocolFlag) { return protocolFlag.equals(Protocol.ANY) || protocolsMap.containsKey(protocolFlag) && protocolsMap.get(protocolFlag).equals(tagProxy.getTech()); } 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 protocolFlagMatchesTrue() throws KeypleBaseException, IOException { insertSe(); reader.addSeProtocolSetting( new SeProtocolSetting(AndroidNfcProtocolSettings.SETTING_PROTOCOL_ISO14443_4)); when(tagProxy.getTech()) .thenReturn(AndroidNfcProtocolSettings.SETTING_PROTOCOL_ISO14443_4.getValue()); Assert.assertTrue(reader.protocolFlagMatches(ContactlessProtocols.PROTOCOL_ISO14443_4)); }