@Test
public void testSerialization() throws IOException { //, ClassNotFoundException
final List<TileSetDefinition> tilesets = map.getTilesets();
final ByteArrayOutputStream array = new ByteArrayOutputStream();
final OutputSerializer out = new OutputSerializer(array);
out.write(tilesets.size());
for (final TileSetDefinition set : tilesets) {
set.writeObject(out);
}
final byte[] serialized = array.toByteArray();