@Before
  public void setup() {
    MockitoAnnotations.initMocks(this);

    when(comboBoxMock.getPropertyDataSource()).thenReturn(null);
    doReturn(comboBoxMock).when(delegateMock).createField(containerMock, 1, "test", uiContextMock);
    doReturn(comboBoxMock).when(delegateMock).createField(itemMock, "test");

    when(databaseContainer.convertItemToRow(itemMock, false, true)).thenReturn(containerRowMock);
    when(containerRowMock.getFields()).thenReturn(singletonMap("test", containerFieldMock));
  }
  @Before
  public void setUp() {
    MockitoAnnotations.initMocks(this);

    when(modelMock.getContainer()).thenReturn(containerMock);
    when(modelMock.getPanel()).thenReturn(pageMock);
    when(modelMock.getRowHeight()).thenReturn(10);
    when(modelMock.getPageLength()).thenReturn(15);
    when(modelMock.getCacheRate()).thenReturn(2.0);
    when(modelMock.isSortingEnabled()).thenReturn(true);
    when(modelMock.getColumns()).thenReturn(tableColumns);
    when(modelMock.getActions()).thenReturn(tableActionsMock);

    when(containerRowMock.getId()).thenReturn(containerRowIdMock);
  }