* Expectation: passes
*/
@Test
public void t17_cc_10MBInitial3LargeAppendix1LargeInitial() throws Exception {
// 1: load large data (10MB) to cache (cid=700)
SCMessage request = new SCMessage();
request.setCacheId("700");
request.setData("cache10MBStringFor1Hour_managedData");
request.setMessageInfo(TestConstants.cacheCmd);
sessionService1.execute(request);
// 2: start cache guardian - publish 3 large Appendix (2 parts each) & 1 large initial
SCSubscribeMessage subMsg = new SCSubscribeMessage();
subMsg.setMask(TestConstants.mask);
subMsg.setSessionInfo(TestConstants.publish3LargeAppendix1LargeInitialMsgCmd);
subMsg.setData("700");
guardianClient.startCacheGuardian(TestConstants.cacheGuardian1, subMsg, cacheGuardianCbk);
// 3: verify callback retrieval - 3 appendix within 10sec
cacheGuardianCbk.waitForAppendMessage(3, 10);
// 4: verify callback retrieval - 1 initial within 10sec
cacheGuardianCbk.waitForMessage(1, 10);
// 5: read data from cache and verify
SCMessage response = sessionService1.execute(request);
this.checkAppendices(response, 0);
// 6: verify data is in top level cache
Map<String, String> inspectResponse = mgmtClient.inspectCache("700");
this.checkCacheInspectString(inspectResponse, "success", SC_CACHE_ENTRY_STATE.LOADED, "700", "0", "700/0/0=1&",