clazz.createProperty("link", OType.LINK);
clazz.createProperty("string", OType.STRING);
clazz.createProperty("binary", OType.BINARY);
ODocument doc = new ODocument(clazz);
doc.field("integer", 10);
doc.field("link", new ORecordId(1, new OClusterPositionLong(2)));
doc.field("string", "string");
doc.field("binary", new byte[] { 30 });
// the types are from the schema.
assertEquals(doc.fieldType("integer"), OType.INTEGER);