public void testNoOverlay() {
// Make sure that extractMask returns null if no overlay.
Dataset dataset = getDatasetService().create(new long [] { 30, 30 }, "Foo", new AxisType [] { Axes.X, Axes.Y }, 8, true, false);
Display<?> display = getDisplayService().createDisplay(getImageDisplayService().createDataView(dataset));
assertTrue(display instanceof ImageDisplay);
ImageDisplay iDisplay = (ImageDisplay)display;
for (DataView v:iDisplay) {
v.setSelected(true);
}
assertNull(OverlayUtils.extractMask(iDisplay));
}