}
@Test
public void serializeDeserializeNoSubUsingCache() throws CMBException {
CNSMessage p1 = CNSMessageTest.getMessage("test", null, "test", "test-arn", "test-pub-userId");
CNSCachedEndpointPublishJob job = new CNSCachedEndpointPublishJob(p1, Collections.EMPTY_LIST);
String str = job.serialize();
logger.debug("serializedFOrm=" + str);
CNSEndpointPublishJob rec = CNSCachedEndpointPublishJob.parseInstance(str);
if (!job.equals(rec)) {
fail("orig!=rec. orig=" + job + " rec=" + rec);
}
}