@Before public void createMap() { map = new SerializationSafeHashMap<Object, Object>(); map.put("key1", "value1"); map.put(new NonSerializableValue("key2"), "value2"); map.put("key3", new NonSerializableValue("value3")); }