register(serverKryo);
// After all common registrations, register OtherObjectImpl only on the server using the remote object interface ID.
// This causes OtherObjectImpl to be serialized as OtherObject.
int otherObjectID = serverKryo.getRegistration(OtherObject.class).getId();
serverKryo.register(OtherObjectImpl.class, new RemoteObjectSerializer(), otherObjectID);
startEndPoint(server);
server.bind(tcpPort);
// TestObjectImpl has a reference to an OtherObjectImpl.