@Test
public void testSentenceTagInsertion() throws Exception {

	String seq = "The qu1ck br0wn fox jumps over the lazy dog";
	StringProviderMXBean provider = AbstractStringProvider.connectToServer(_host, _rmiport, _lm_id);
	String orig = Properties.get().getProperty("lt.lm.insertSentenceTags");
	Properties.get().setProperty("lt.lm.insertSentenceTags", "0");
	List<String>[] ngrams = provider.getNgrams(seq);
	System.out.println(Arrays.asList(ngrams));
	Assert.assertEquals("The", ngrams[0].get(0));
	Assert.assertEquals("dog", ngrams[ngrams.length-1].get(provider.getLmOrder()-1));
	Properties.get().setProperty("lt.lm.insertSentenceTags", "1");
	ngrams = provider.getNgrams(seq);
	System.out.println(Arrays.asList(ngrams));
	Assert.assertEquals(PseudoSymbol.SEQUENCE_START.asString(), ngrams[0].get(0));
	Assert.assertEquals("dog", ngrams[ngrams.length-1].get(provider.getLmOrder()-1));
	Properties.get().setProperty("lt.lm.insertSentenceTags", "2");
	ngrams = provider.getNgrams(seq);
	System.out.println(Arrays.asList(ngrams));
	Assert.assertEquals("The", ngrams[0].get(0));
	Assert.assertEquals(PseudoSymbol.SEQUENCE_END.asString(), ngrams[ngrams.length-1].get(provider.getLmOrder()-1));
	Properties.get().setProperty("lt.lm.insertSentenceTags", "3");
	ngrams = provider.getNgrams(seq);
	System.out.println(Arrays.asList(ngrams));
	Assert.assertEquals(PseudoSymbol.SEQUENCE_START.asString(), ngrams[0].get(0));
	Assert.assertEquals(PseudoSymbol.SEQUENCE_END.asString(), ngrams[ngrams.length-1].get(provider.getLmOrder()-1));
	Properties.get().setProperty("lt.lm.insertSentenceTags", orig);
}