}
}
public void testTypeDeclaration() throws Exception {
repo.getClass(TypeQualifications.class.getName());
ClassInfo info = repo.getCachedClass(TypeQualifications.class.getName());
Iterator<FieldInfo> iterator = info.getFields().iterator();
FieldInfo field0 = iterator.next();
FieldInfo field1 = iterator.next();
FieldInfo field2 = iterator.next();
FieldInfo field3 = iterator.next();
assertFalse(iterator.hasNext());
String expected = "com.google.test.metric.javasrc.JavaSrcRepositoryTest$My$String";
assertEquals("java.lang.String", field0.getType().toString());
assertEquals(expected, field1.getType().toString());
assertEquals(expected, field2.getType().toString());
assertEquals(expected, field3.getType().toString());
ClassInfo myInfo = repo.getClass(My.class.getName());
FieldInfo myField0 = myInfo.getFields().iterator().next();
assertEquals(expected, myField0.getType().toString());
}