def METHOD_NAME(self):
    detector = detectors.Detector(pixel1=1, pixel2=2, max_shape=(100, 100))
    widget = DetectorSelectorDrop()
    widget.setDetector(detector)
    newDetector = widget.detector()
    self.assertEqual(detector, newDetector)