}
@Test
public void testSingleSentenceChunkerConfig(){
TextAnalyzerConfig config = new TextAnalyzerConfig();
config.forcePosTypeChunker(false);
TextAnalyzer analyzer = new TextAnalyzer(openNLP,LANGUAGE,config);
AnalysedText analysed = analyzer.analyseSentence(SINGLE_SENTENCE);
assertNotNull(analysed);
//check the default config
assertFalse(analyzer.getConfig().isSimpleTokenizerForced());
assertTrue(analyzer.getConfig().isPosTaggerEnable());
assertTrue(analyzer.getConfig().isChunkerEnabled());
assertTrue(analyzer.getConfig().isPosTypeChunkerEnabled());
assertFalse(analyzer.getConfig().isPosTypeChunkerForced());
checkSingleSentence(analysed,SINGLE_SENTENCE_TOKENS,true,true);
}