assertEquals(maxFreeSpace, applicationDirectory.getMaxContinousSize());
}
@Test
public void testMadAllocateSpecifiedMemory() throws Exception {
MfClassicReaderWriter readerWriter = loadData(blankCard);
ApplicationDirectory applicationDirectory = readerWriter.createApplicationDirectory(MAD_KEY_CONFIG);
Application application = applicationDirectory.createApplication(testAppId, 50, dummyKey, testNdefTrailerBlock);
assertEquals(96, application.getAllocatedSize());
assertEquals(maxFreeSpace - 96, applicationDirectory.getMaxContinousSize());
}