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

	Schema schema = parseSchema("src/test/resources/nullablefield.tml");
	Collection<UserType> types = schema.getUserTypes();
	Iterator<UserType> itr = types.iterator();
	assertTrue(itr.next().isClass());
	Class class1 = (Class) itr.next();
	assertTrue(class1.getName().contains("TeslaClass"));
	for (Field field : class1.getAllFields()) {
		assertTrue(((Field) field).getIsOptional());
	}
}