panel.setText("<my_style>some </my_style><my_other_style>text</my_other_style>", parent);
panel.buildLines();
List<StyledText> chunks = panel.getTextChunks();
StyledText layout = chunks.get(0);
assertEquals(5, layout.getText().length());
assertSubString("name=Helvetica", layout.toString());
assertSubString("style=bold", layout.toString());
assertSubString("size=20", layout.toString());
StyledText layout2 = chunks.get(1);
assertEquals(5, layout.getText().length());
assertSubString("family=Dialog", layout2.toString());
assertSubString("name=Cuneiform", layout2.toString());
assertSubString("style=italic", layout2.toString());
assertSubString("size=19", layout2.toString());
}