assertTrue("user-agent a and b shares the same RobotsDirectives before serialization", da == db);
}
ByteBuffer buffer = ByteBuffer.allocateDirect(1024);
kryo.writeObject(buffer, rt);
buffer.flip();
Robotstxt rt2 = kryo.readObject(buffer, Robotstxt.class);
assertNotNull(rt2);
{
RobotsDirectives da = rt2.getDirectivesFor("a", false);
RobotsDirectives db = rt2.getDirectivesFor("b", false);
assertTrue("user-agent a and b shares the same RobotsDirectives after deserialization", da == db);