@Test
public void testHideColumnCheckBox() {

    final CheckBox expectedCheckBox = mock(CheckBox.class);
    final ClickHandler clickHandler = mock(ClickHandler.class);
    final boolean isHideColumn = true;
    doReturn(isHideColumn).when(metadataColumn).isHideColumn();
    doReturn(expectedCheckBox).when(presenter).makeCheckBox(eq("HideThisColumn:"));
    doReturn(clickHandler).when(presenter).hideMetadataClickHandler(modeller, expectedCheckBox, metadataColumn);
    final CheckBox actualCheckBox = presenter.hideColumnCheckBox(modeller, metadataColumn);
    verify(expectedCheckBox).setValue(isHideColumn);
    verify(expectedCheckBox).addClickHandler(clickHandler);
    assertEquals(expectedCheckBox, actualCheckBox);
}