@Test
public void testEventMessageParcelable() {

  EventMessage eventMessage =
      new EventMessage("urn:test", "123", 3000, 1000403, new byte[] {0, 1, 2, 3, 4});
  // Write to parcel.
  Parcel parcel = Parcel.obtain();
  eventMessage.writeToParcel(parcel, 0);
  // Create from parcel.
  parcel.setDataPosition(0);
  EventMessage fromParcelEventMessage = EventMessage.CREATOR.createFromParcel(parcel);
  // Assert equals.
  assertThat(fromParcelEventMessage).isEqualTo(eventMessage);
}