VideoUploadedEventCodec implements MessageCodec<VideoUploadedEvent, VideoUploadedEvent> { @Override public String name() { return "VideoUploadedEvent Codec"; }  @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 testName() { VideoUploadedEventCodec codec = new VideoUploadedEventCodec(); assertThat(codec.name()).isEqualTo("VideoUploadedEvent Codec"); }