public void testStringArrayNullValue() throws Exception{
String lemmaListName = CASTestSetup.TOKEN_TYPE + TypeSystem.FEATURE_SEPARATOR
+ CASTestSetup.LEMMA_LIST_FEAT;
final Feature lemmaList = this.ts.getFeatureByFullName(lemmaListName);
assertTrue(lemmaList != null);
StringArrayFS casArray = this.cas.createStringArrayFS(3);
casArray.set(0, "1");
casArray.set(1, null);
casArray.set(2, "3");
FeatureStructure token = this.cas.createFS(this.ts.getType(CASTestSetup.TOKEN_TYPE));
assertTrue(token.getFeatureValue(lemmaList) == null);
token.setFeatureValue(lemmaList, casArray);
this.cas.addFsToIndexes(token);
assertTrue(((StringArrayFS) token.getFeatureValue(lemmaList)).get(0) == "1");
assertTrue(((StringArrayFS) token.getFeatureValue(lemmaList)).get(1) == null);
LowLevelCAS llc = casArray.getCAS().getLowLevelCAS();
assertTrue(llc.ll_getIntArrayValue(llc.ll_getFSRef(casArray), 1) == LowLevelCAS.NULL_FS_REF);
}