assertThat(gsm,siteFailureIs(sfmSafe(4,44,5,55),decision,1,2,3));
}
@Test
public void testForwardRoundTripSerialization() throws Exception {
SiteFailureMessage msg = make(sfm);
assertThat(msg,siteFailureIs(sfmSafe(4,44,5,55),sfmFailed(4,5,6),sfmSurvived(1,2,3)));
ByteBuffer bb = VoltMessage.toBuffer(msg);
VoltMessage vmsg = factory.createMessageFromBuffer(bb, 1L);
assertTrue(vmsg instanceof SiteFailureMessage);
SiteFailureMessage gsm = (SiteFailureMessage)vmsg;
assertThat(gsm,siteFailureIs(sfmSafe(4,44,5,55),sfmFailed(4,5,6),sfmSurvived(1,2,3)));
SiteFailureForwardMessage fmsg = new SiteFailureForwardMessage(gsm);
assertThat(fmsg, failureForwardMsgIs(1, sfmSafe(4,44,5,55),sfmFailed(4,5,6),sfmSurvived(1,2,3)));