}
@Test public void testMathModeWithSpecialCharacters() throws ParseException {
IGroup group = parser.parsePSTCode("$foo_{test}$").get(); //$NON-NLS-1$
assertEquals(1, group.size());
assertTrue(group.getShapeAt(0) instanceof IText);
assertEquals("$foo_{test}$", ((IText)group.getShapeAt(0)).getText()); //$NON-NLS-1$
group = parser.parsePSTCode("$\\|$").get(); //$NON-NLS-1$
assertEquals(1, group.size());
assertTrue(group.getShapeAt(0) instanceof IText);
assertEquals("$\\|$", ((IText)group.getShapeAt(0)).getText()); //$NON-NLS-1$
group = parser.parsePSTCode("$\\mathcal{M}$").get(); //$NON-NLS-1$
assertEquals(1, group.size());
assertTrue(group.getShapeAt(0) instanceof IText);
assertEquals("$\\mathcal{M}$", ((IText)group.getShapeAt(0)).getText()); //$NON-NLS-1$
}