/**
  * Test method for {@link
  * edu.ncsu.csc216.androtech.model.management.ServiceManager#releaseFromService(int)} .
  */
 @Test
 public void testReleaseFromService() {
   boolean thrown = true;
   try {
     scanner = new Scanner(new File("oneDevice.txt"));
     serviceManager = new ServiceManager(scanner);
     assertEquals(serviceManager.printWaitList(""), "V Gold      0987-N-817 Fath Hoth");
     serviceManager.assignDroids();
     assertTrue(
         serviceManager
             .printDroids()
             .equals(
                 "05V: 0987-N-817 Fath Hoth\n03V:"
                     + " UNASSIGNED\n02E: UNASSIGNED\n01C: UNASSIGNED\n04C: UNASSIGNED"));
     serviceManager.releaseFromService(0);
     assertTrue(
         serviceManager
             .printDroids()
             .equals(
                 "05V: UNASSIGNED\n03V:"
                     + " UNASSIGNED\n02E: UNASSIGNED\n01C: UNASSIGNED\n04C: UNASSIGNED"));
   } catch (FileNotFoundException e) {
     thrown = false;
   }
   assertTrue(thrown);
 }