Assert.assertEquals(ot2.subObj.i, ot.subObj.i);
}
@Test
public void trPeerInfoTest() throws Exception {
final TrPeerInfo ot = new TrPeerInfo(new RemoteNodeAddress(new UdpNetworkLocation(InetAddress.getByName("127.0.0.1"), 1234), TrCrypto.createRsaKeyPair().a));
final ByteArrayOutputStream baos = new ByteArrayOutputStream(1024);
final DataOutputStream dos = new DataOutputStream(baos);
TrSerializer.serializeTo(ot, dos);
final DataInputStream dis = new DataInputStream(new ByteArrayInputStream(baos.toByteArray()));
final TrPeerInfo ot2 = TrSerializer.deserializeFrom(TrPeerInfo.class, dis);
}