@Test
public void testDeleteMetaDataColumnAnchor() {

    final DeleteColumnManagementAnchorWidget expectedWidget = mock(DeleteColumnManagementAnchorWidget.class);
    final String columnHeader = "columnHeader";
    final Command command = mock(Command.class);
    doReturn(columnHeader).when(metadataColumn).getMetadata();
    doReturn(expectedWidget).when(deleteColumnManagementAnchorWidgets).get();
    doReturn(command).when(presenter).deleteMetadataCommand(modeller, metadataColumn);
    final DeleteColumnManagementAnchorWidget actualWidget = presenter.deleteMetaDataColumnAnchor(modeller, metadataColumn);
    verify(actualWidget).init(columnHeader, command);
    assertEquals(expectedWidget, actualWidget);
}