public void test() {
DictionaryCategory category = new DictionaryCategory();
category.setName("a category");
category.setSortOrder(1);
category.setId(3L);
Dictionary dictionary1 = new Dictionary("01", "男", category);
Dictionary dictionary2 = new Dictionary("01", "男", category);
category.setDictionaries(Sets.newHashSet(dictionary1, dictionary2));
System.out.println(instance.serialize(category));
}