// prepare test data, but without using a static variable
byte[] testBytes = mapToPropertiesToBytes(testMap);
assertNotNull(testBytes);
Serializer<Map<?, ?>> serializer = new PropertiesSerializer();
log("serializer instance created: " + serializer);
ByteArrayInputStream inputStream = new ByteArrayInputStream(testBytes);
@SuppressWarnings("unchecked")
Map<String, Object> readData = (Map<String, Object>) serializer.readObject(inputStream);
assertNotNull(readData);
log("Succesfully Read");
for (String key : readData) {
log(key + "=" + readData.get(key));