private void containerReturnsPropertyWithFieldNullable(boolean nullable) { ColumnProperty property = new ColumnProperty("test", true, false, nullable, false, "1", String.class); when(containerMock.getItem(1)).thenReturn(itemMock); when(itemMock.getItemProperty("test")).thenReturn(property); when(containerFieldMock.isRequired()).thenReturn(!nullable); }