@Test
public void schemaEnumTest() throws Exception {

	Schema schema = parseSchema("src/test/resources/enum.tml");
	assertNotNull(schema);
	Collection<UserType> types = schema.getUserTypes();
	assertTrue(types.iterator().next().isEnum());
	Enum enumType = (Enum) types.iterator().next();
	assertNotNull(enumType);
	Collection<EnumEntry> enumEntries = enumType.getEntries();
	assertEquals(3, enumEntries.size());
	// enum value start from -1
	int i = 0;
	for (EnumEntry enumEntry : enumEntries) {
		assertEquals(i-1, enumEntry.getValue());
		i++;
	}
}