List<Record> records = new ArrayList<Record>();
records.add(new UriRecord("http://www.nfctools.org"));
NdefPushLlcpService ndefPushLlcpService = new NdefPushLlcpService(new LoggingNdefListener());
ndefPushLlcpService.addMessages(records, null);
NfcipHelper helper = new NfcipHelper(null, null, ndefListener, ndefPushLlcpService);
helper.launch();
synchronized (this) {
wait(5000);
}
assertFalse(ndefListener.getRecords().isEmpty());
UriRecord uriRecord = (UriRecord)ndefListener.getRecords().iterator().next();