@Test
public void testAppendAndGet() throws IOException, ClassNotFoundException {

	long createdTime = System.nanoTime();
	mapTable = new FCMapTable(testDir, 1, createdTime, 1000);
	assertTrue(mapTable.getLevel() == 1);
	assertTrue(mapTable.getCreatedTime() == createdTime);
	assertTrue(mapTable.getAppendedSize() == 0);
	assertTrue(mapTable.isEmpty());
	assertTrue(mapTable.getBackFileSize() == HashMapTable.INIT_INDEX_FILE_SIZE + HashMapTable.INIT_DATA_FILE_SIZE  + HashMapTable.INDEX_ITEM_LENGTH);
	mapTable.appendNew("key".getBytes(), "value".getBytes(), 500);
	assertTrue(mapTable.getLevel() == 1);
	assertTrue(mapTable.getCreatedTime() == createdTime);
	assertTrue(mapTable.getAppendedSize() == 1);
	assertFalse(mapTable.isEmpty());
	GetResult result = mapTable.get("key".getBytes());
	assertTrue(result.isFound());
	assertTrue(!result.isDeleted());
	assertTrue(!result.isExpired());
	try {
		Thread.sleep(1000);
	} catch (InterruptedException e) {
		e.printStackTrace();
	}
	result = mapTable.get("key".getBytes());
	assertTrue(result.isFound());
	assertTrue(!result.isDeleted());
	assertTrue(result.isExpired());
	result = mapTable.get("key1".getBytes());
	assertFalse(result.isFound());
	assertFalse(mapTable.isUsable());
}