@Test
public void testTitleInContructor() {

    String title = "customTitle";
    JXHeader header = new JXHeader(title, null);
    // sanity: the property is set
    assertEquals(title, header.getTitle());
    assertEquals("the label's text must be equal to the headers title",
            header.getTitle(), getTitleLabel(header).getText());
}