@Test
public void testIsFreeCode() throws Exception {

    Query<KeywordBean> query = QueryBuilder.keywordQueryBuilder(isoLangMapper, "eng").limit(1).build();
    assertFalse(query.execute(thesaurus).isEmpty());
    KeywordBean keyword = query.execute(thesaurus).get(0);
    assertFalse(thesaurus.isFreeCode(keyword.getNameSpaceCode(), keyword.getRelativeCode()));
    assertTrue(writableThesaurus.isFreeCode(keyword.getNameSpaceCode(), keyword.getRelativeCode()));
}