}
public void testFieldDeclareation() throws Exception {
ClassInfo info = repo.getClass(FieldDeclaration.class.getCanonicalName());
Iterator<FieldInfo> iterator = info.getFields().iterator();
FieldInfo field1 = iterator.next();
FieldInfo field2 = iterator.next();
assertFalse(iterator.hasNext());
assertEquals("field1", field1.getName());
assertEquals(String.class.getCanonicalName(), field1.getType().toString());
assertEquals(false, field1.isPrivate());
assertEquals(true, field1.isFinal());
assertEquals(true, field1.isGlobal());
assertEquals("field2", field2.getName());
assertEquals(JavaType.INT, field2.getType());
assertEquals(false, field2.isPrivate());
assertEquals(false, field2.isFinal());
assertEquals(false, field2.isGlobal());
}