@Test
public void testGetNameComponents() {

    testArray(new String[] { "contents", "lemma" },
            AnnotatedFieldNameUtil.getNameComponents(AnnotatedFieldNameUtil.annotationField("contents", "lemma", null)));
    testArray(new String[] { "contents", "lemma", "s" },
            AnnotatedFieldNameUtil.getNameComponents(AnnotatedFieldNameUtil.annotationField("contents", "lemma", "s")));
    testArray(new String[] { "contents", null, null, "cid" },
            AnnotatedFieldNameUtil.getNameComponents(AnnotatedFieldNameUtil.bookkeepingField("contents", null, "cid")));
    testArray(new String[] { "contents", "lemma", null, "fiid" },
            AnnotatedFieldNameUtil.getNameComponents(AnnotatedFieldNameUtil.bookkeepingField("contents", "lemma", "fiid")));
}