@Test
public void testRespectCustomLayoutGap() {

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