/** * Makes sure the record stream starts with {@link BOFRecord} and then {@link WindowOneRecord} * The second record is Gets decrypted so this method also Checks its content. */ private void ConfirmReadInitialRecords(RecordFactoryInputStream rfis) { Assert.AreEqual(typeof(BOFRecord), rfis.NextRecord().GetType()); WindowOneRecord rec1 = (WindowOneRecord)rfis.NextRecord(); Assert.IsTrue(Arrays.Equals(HexRead.ReadFromString(SAMPLE_WINDOW1), rec1.Serialize())); }