@Test
public void shouldResolveForeignKey() throws Exception {

    final Table refTable = createTable(getDefaultVdbName(), VDB_PATH, "mymodel", "refTable");
    final Table table = createTable();
    final ForeignKey foreignKey = table.addForeignKey(getTransaction(), "foreignKey", refTable);
    final KomodoObject kobject = new ObjectImpl(_repo, foreignKey.getAbsolutePath(), foreignKey.getIndex());
    assertThat(this.wsMgr.resolve(getTransaction(), kobject, ForeignKey.class), is(instanceOf(ForeignKey.class)));
}