/**
* Tests get and set of read only.
*/
public void testReadOnly() {
FieldInfoFactory factory = new FieldInfoFactory();
FieldInfo flat = factory.createFieldInfo(
new XSClass(new JClass("House")), "flat");
flat.addNature(JDOOneToManyNature.class.getName());
JDOOneToManyNature relation = new JDOOneToManyNature(flat);
relation.setReadOnly(true);
assertEquals(true, relation.isReadOnly());