@Test public void testRandom() throws IOException {
StringSerializer serializer=StringSerializer.INSTANCE;
for (int i=0; i < 100; i++) {
String str=RandomStringUtils.random(i);
byte[] serialized=serializer.serialize(str);
String deserialized=(String)serializer.deserialize(serialized);
assertEquals(str,deserialized);
}
}