InterlingualIndexConverter { public InterlingualIndexConverter(GNConverter gnConverter, GermaNet gnet, Lexicon wordNetLexicon, MetaData alignmentMetaData) { this.gnConverter = gnConverter; this.gnet = gnet; this.wordNetLexicon = wordNetLexicon; this.metaData = alignmentMetaData; } InterlingualIndexConverter(GNConverter gnConverter, GermaNet gnet, Lexicon wordNetLexicon, MetaData alignmentMetaData); void convert(); List<SenseAxis> getSenseAxes(); static MetaData getDefaultMetaData();  }
@SuppressWarnings("unchecked") @Test public final void testInterlingualIndexConverter() throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException { Field fieldGnConverter = iliClass.getDeclaredField("gnConverter"); fieldGnConverter.setAccessible(true); assertEquals(gnConverter, fieldGnConverter.get(iliConverter)); Field fieldGnet = iliClass.getDeclaredField("gnet"); fieldGnet.setAccessible(true); assertEquals(gnet, fieldGnet.get(iliConverter)); Field fieldWordNetLexicon = iliClass.getDeclaredField("wordNetLexicon"); fieldWordNetLexicon.setAccessible(true); assertEquals(wordNetLexicon, fieldWordNetLexicon.get(iliConverter)); Field fieldSenseAxes = iliClass.getDeclaredField("senseAxes"); fieldSenseAxes.setAccessible(true); assertEquals(0, ((List<SenseAxis>)fieldSenseAxes.get(iliConverter)).size()); assertEquals(0, ((Map<EPartOfSpeech, Map<Long, Synset>>)fieldSynsetMappings.get(iliConverter)).size()); }