@Test
public void testPacket_writeAndRead() {
SerializationService ss = createSerializationService(10);
UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("test", "pass");
ClientPrincipal principal = new ClientPrincipal("uuid", "uuid2");
Data data = ss.toData(new AuthenticationRequest(credentials, principal));
Packet packet = new Packet(data, ss.getPortableContext());
ByteBuffer buffer = ByteBuffer.allocate(1024);