/**
* Test add and get foreign key methods.
*/
public void testAddGetForeignKey() {
FieldInfoFactory factory = new FieldInfoFactory();
FieldInfo address = factory.createFieldInfo(new XSClass(new JClass(
"Employee")), "address");
address.addNature(JDOOneToOneNature.class.getName());
JDOOneToOneNature relation = new JDOOneToOneNature(address);
relation.addForeignKey("fk_address");
assertEquals("fk_address", (String) relation.getForeignKeys().get(0));