OptionalSerializer implements StreamSerializer<Optional> { @Override public int getTypeId() { return 1; }  @Override void write(ObjectDataOutput out, Optional object); @Override Optional read(ObjectDataInput in); @Override int getTypeId(); @Override void destroy(); static SerializerConfig createConfig();  }
@Test public void getTypeId() throws Exception { Assert.assertEquals(1, new OptionalSerializer().getTypeId()); }