@Test
public void testAnnotations() {
HashMap<String, TestClass3> map = new HashMap<String, TestClass3>();
map.put("String1", new TestClass3());
TestClass2 testElement = new TestClass2();
testElement.setMapOfJustice(map);
String json = new JsonSerializer().serialize(testElement);
assertAttributeMissing("mapOfJustice", json);
assertAttributeMissing("name", json);
assertEquals(-1, json.indexOf("testName2"));