applicationDirectory.createApplication(testAppId, maxFreeSpace + 1, dummyKey, testNdefTrailerBlock);
}
@Test
public void testMadOpenReadAid() throws Exception {
MfClassicReaderWriter readerWriter = loadData(cardWithMad);
ApplicationDirectory applicationDirectory = readerWriter.getApplicationDirectory();
Application application = applicationDirectory.openApplication(testAppId);
assertArrayEquals(testAppId.getAid(), application.getApplicationId());
assertEquals(existingAppSize, application.getAllocatedSize());
byte[] readData = application.read(KEY_VALUE_A);
assertEquals(existingAppSize, readData.length);