public static <E> void populateField(final E object, final String fieldName, final Object value) throws NoSuchFieldException, IllegalAccessException {
        final Field field = object.getClass().getDeclaredField(fieldName);
        field.setAccessible(true);
        try {
            field.set(object, value);
        } finally {
            field.setAccessible(false);
        }
    }
Asserts that when a populated instance of HistoryStrategy is serialized and the resulting data deserialized again, an
instance results that is equal to the original input.
xmppserver/src/test/java/org/jivesoftware/openfire/muc/HistoryStrategyTest.java