@Test
public void testRespectCustomLayout() {

    JXTaskPaneContainer container = new JXTaskPaneContainer();
    VerticalLayout layout = (VerticalLayout) container.getLayout();
    VerticalLayout custom = new VerticalLayout(layout.getGap() + 10);
    container.setLayout(custom);
    container.updateUI();
    assertSame(custom, container.getLayout());
}