public void testBlah() {
TitlePane titlePane = new TitlePane();
titlePane.setImage(new BufferedImage(16, 16, BufferedImage.TYPE_INT_RGB));
titlePane.setTitle("new title");
titlePane.setMessage(new DefaultMessage("test message", null));
assertEquals("new title", titlePane.getTitle());
// trigger control creation
JPanel panel = (JPanel) titlePane.getControl();
assertEquals("must have 3 components: title, icon and message", 3, panel.getComponentCount());
JLabel titleLabel = (JLabel) panel.getComponent(0);
assertEquals("new title", titleLabel.getText());
JLabel iconLabel = (JLabel) panel.getComponent(1);
assertNotNull(iconLabel.getIcon());
JLabel messageLabel = (JLabel) panel.getComponent(2);
assertEquals("<html>test message</html>", messageLabel.getText());
// change title and message after control creation
titlePane.setTitle("other title");
titlePane.setMessage(new DefaultMessage("other message", null));
assertEquals("other title", titleLabel.getText());
assertEquals("<html>other message</html>", messageLabel.getText());
}