### Question:
LossesActivity extends CommoditySelectableActivity { @Override protected CommodityDisplayStrategy getCheckBoxVisibilityStrategy() { return DISALLOW_CLICK_WHEN_OUT_OF_STOCK; }    }### Answer:
@Test public void shouldNotAllowSelectionOfOutOfStockCommoditiesOnOverlay() { assertThat(lossesActivity.getCheckBoxVisibilityStrategy(), is(CommodityDisplayStrategy.DISALLOW_CLICK_WHEN_OUT_OF_STOCK)); }