SortedMap<Integer, String> prefixTimeZonesMapping = parseTextFileHelper(input);
GenerateTimeZonesMapData.writeToBinaryFile(prefixTimeZonesMapping, byteArrayOutputStream);
// The byte array output stream now contains the corresponding serialized prefix to time zones
// map. Try to deserialize it and compare it with the initial input.
PrefixTimeZonesMap prefixTimeZonesMap = new PrefixTimeZonesMap();
prefixTimeZonesMap.readExternal(
new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray())));
return prefixTimeZonesMap.toString();
}