@Test
 public void test_getMonitor() {
   Monitor monitor = control.getMonitor();
   assertNotNull(monitor);
   Display display = control.getDisplay();
   Monitor[] monitors = display.getMonitors();
   int i;
   /* monitor must be listed in Display.getMonitors */
   for (i = 0; i < monitors.length; i++) {
     if (monitor.equals(monitors[i])) break;
   }
   if (i == monitors.length) {
     fail("Control.getMonitor does not return a monitor listed in Display.getMonitors");
   }
 }
 public void test_equalsLjava_lang_Object() {
   int i;
   for (i = 0; i < monitors.length; i++) {
     if (primary.equals(monitors[i])) break;
   }
   if (i == monitors.length) fail();
   for (i = 0; i < monitors.length; i++) {
     Monitor test = monitors[i];
     for (int j = 0; j < monitors.length; j++) {
       if (test.equals(monitors[j])) {
         if (i != j) fail("Monitors " + i + " and " + j + " should not be equal");
       }
     }
   }
 }