VideoUploadedEventCodec implements MessageCodec<VideoUploadedEvent, VideoUploadedEvent> { @Override public VideoUploadedEvent transform(VideoUploadedEvent s) { return s; }  @Override void encodeToWire(Buffer buffer, VideoUploadedEvent s); @Override VideoUploadedEvent decodeFromWire(int pos, Buffer buffer); @Override VideoUploadedEvent transform(VideoUploadedEvent s); @Override String name(); @Override byte systemCodecID();  }
@Test public void testTransform() { VideoUploadedEventCodec codec = new VideoUploadedEventCodec(); UUID taskId = new IdGenerator().generateUuidV1(); VideoUploadedEvent event = new VideoUploadedEvent(taskId, "file", Collections.singleton("resolution")); assertThat(codec.transform(event)).isSameAs(event); }