@Test
public void schemaFieldRankTest() throws URISyntaxException,
		TeslaSchemaException, NoSuchAlgorithmException, SAXException,
		IOException, ParserConfigurationException {

	Schema schema = parseSchema("src/test/resources/fieldrank.tml");
	Collection<UserType> types = schema.getUserTypes();
	assertTrue(types.iterator().next().isClass());
	Class class1 = (Class) types.iterator().next();
	assertTrue(class1.getName().contains("TeslaClass"));
	for (Field field : class1.getAllFields()) {
		assertTrue(((Field) field).getIsArray());
		assertEquals(2, ((Field) field).getRank());
	}
}