public void testUpateAircraftArrivalObjectAttributes() {

    // set the attributes to be updated
    //
    AircraftArrival newAircraftArrival = new AircraftArrival();

    // NOTE: Used only since the unit testing is conducted in the VM.
    // Changing
    // this emulates what would happen if the objects were residing on
    // separate
    // machines and thus address spaces.

    newAircraftArrival.setDataObjectUUID(aircraftArrival.getDataObjectUUID());

    newAircraftArrival.setCallSign(callSign);
    newAircraftArrival.setTailNumber(tailNumber);

    newAircraftArrival.setActualArrivalTimeMSecs(System.currentTimeMillis());
    newAircraftArrival.setArrivalRunway(arrivalRunwayName);
    newAircraftArrival.setArrivalAirportCode(arrivalAirportCode);

    Set<String> fieldsToUpdate = new HashSet<String>();
    fieldsToUpdate.add(EventAttributeName.arrivalRunway.toString());
    fieldsToUpdate.add(EventAttributeName.arrivalAirportCode.toString());

    try {
      objectService.updateObjectAttributes(
          federationExecutionID, newAircraftArrival, fieldsToUpdate);
    } catch (MuthurException e) {
      fail(e.getLocalizedMessage());
    }

    // will retrieve the updated object from the object service and compare
    // it
    // to the object which should accurately test whether the update was
    // applied

    assertObjectExists(aircraftArrival);
  }
  public void testUpateFlightPositionObjectAttributes() {

    // set the attributes to be updated
    //
    FlightPosition newFlightPosition = new FlightPosition();

    // NOTE: Used only since the unit testing is conducted in the VM.
    // Changing
    // this emulates what would happen if the objects were residing on
    // separate
    // machines and thus address spaces.

    newFlightPosition.setDataObjectUUID(flightPosition.getDataObjectUUID());

    newFlightPosition.setLatitudeDegrees(latitudeDegrees);
    newFlightPosition.setLongitudeDegrees(longitudeDegrees);
    newFlightPosition.setAltitudeFt(altitudeFeet);
    newFlightPosition.setGroundspeedKts(groundSpeedKts);
    newFlightPosition.setHeadingDegrees(headingDegrees);
    newFlightPosition.setAirspeedKts(airSpeedKts);
    newFlightPosition.setPitchDegrees(pitchDegrees);
    newFlightPosition.setRollDegrees(rollDegrees);
    newFlightPosition.setYawDegrees(yawDegrees);
    newFlightPosition.setSector(sectorName);
    newFlightPosition.setCenter(centerName);
    newFlightPosition.setVerticalspeedKts(verticalspeedKts);
    newFlightPosition.setAircraftOnGround(true);
    newFlightPosition.setAircraftTransmissionFrequency(aircraftTransmissionFrequency);
    newFlightPosition.setSquawkCode(squawkCode);
    newFlightPosition.setIdent(true);

    Set<String> fieldsToUpdate = new HashSet<String>();
    fieldsToUpdate.add(EventAttributeName.longitudeDegrees.toString());
    fieldsToUpdate.add(EventAttributeName.latitudeDegrees.toString());
    fieldsToUpdate.add(EventAttributeName.altitudeFt.toString());
    fieldsToUpdate.add(EventAttributeName.groundspeedKts.toString());
    fieldsToUpdate.add(EventAttributeName.headingDegrees.toString());
    fieldsToUpdate.add(EventAttributeName.airspeedKts.toString());
    fieldsToUpdate.add(EventAttributeName.pitchDegrees.toString());
    fieldsToUpdate.add(EventAttributeName.rollDegrees.toString());
    fieldsToUpdate.add(EventAttributeName.yawDegrees.toString());
    fieldsToUpdate.add(EventAttributeName.sector.toString());
    fieldsToUpdate.add(EventAttributeName.center.toString());
    fieldsToUpdate.add(EventAttributeName.verticalspeedKts.toString());
    fieldsToUpdate.add(EventAttributeName.aircraftOnGround.toString());
    fieldsToUpdate.add(EventAttributeName.aircraftTransmissionFrequency.toString());
    fieldsToUpdate.add(EventAttributeName.squawkCode.toString());
    fieldsToUpdate.add(EventAttributeName.ident.toString());

    try {
      objectService.updateObjectAttributes(
          federationExecutionID, newFlightPosition, fieldsToUpdate);
    } catch (MuthurException e) {
      fail(e.getLocalizedMessage());
    }

    // will retrieve the updated object from the object service and compare
    // it
    // to the object which should accurately test whether the update was
    // applied

    assertObjectExists(flightPosition);
  }
  public void testUpateFlightPlanObjectAttributes() {

    // set the attributes to be updated
    //
    FlightPlan newFlightPlan = new FlightPlan();

    // NOTE: Used only since the unit testing is conducted in the VM.
    // Changing
    // this emulates what would happen if the objects were residing on
    // separate
    // machines and thus address spaces.

    newFlightPlan.setDataObjectUUID(flightPlan.getDataObjectUUID());

    newFlightPlan.setSource(source);
    newFlightPlan.setAircraftType(aircraftType);
    newFlightPlan.setCruiseSpeedKts(cruiseSpeedKts);
    newFlightPlan.setCruiseAltitudeFt(cruiseAltitudeFeet);
    newFlightPlan.setRoutePlan(route);
    newFlightPlan.setPlannedDepartureTimeMSecs(System.currentTimeMillis());
    newFlightPlan.setDepartureCenter(departureCenter);
    newFlightPlan.setDepartureFix(departureFix);
    newFlightPlan.setPlannedArrivalTimeMSecs(System.currentTimeMillis());
    newFlightPlan.setArrivalCenter(arrivalCenter);
    newFlightPlan.setArrivalFix(arrivalFix);
    newFlightPlan.setPhysicalAircraftClass(physicalClass);
    newFlightPlan.setWeightAircraftClass(weightClass);
    newFlightPlan.setUserAircraftClass(userClass);
    newFlightPlan.setNumOfAircraft(1);
    newFlightPlan.setAirborneEquipmentQualifier(airborneEquipmentQualifier);

    Set<String> fieldsToUpdate = new HashSet<String>();
    fieldsToUpdate.add(EventAttributeName.source.toString());
    fieldsToUpdate.add(EventAttributeName.aircraftType.toString());
    fieldsToUpdate.add(EventAttributeName.cruiseSpeedKts.toString());
    fieldsToUpdate.add(EventAttributeName.cruiseAltitudeFt.toString());
    fieldsToUpdate.add(EventAttributeName.routePlan.toString());
    fieldsToUpdate.add(EventAttributeName.plannedDepartureTimeMSecs.toString());
    fieldsToUpdate.add(EventAttributeName.departureCenter.toString());
    fieldsToUpdate.add(EventAttributeName.departureFix.toString());
    fieldsToUpdate.add(EventAttributeName.plannedArrivalTimeMSecs.toString());
    fieldsToUpdate.add(EventAttributeName.arrivalCenter.toString());
    fieldsToUpdate.add(EventAttributeName.arrivalFix.toString());
    fieldsToUpdate.add(EventAttributeName.physicalAircraftClass.toString());
    fieldsToUpdate.add(EventAttributeName.weightAircraftClass.toString());
    fieldsToUpdate.add(EventAttributeName.userAircraftClass.toString());
    fieldsToUpdate.add(EventAttributeName.numOfAircraft.toString());
    fieldsToUpdate.add(EventAttributeName.airborneEquipmentQualifier.toString());

    try {
      objectService.updateObjectAttributes(federationExecutionID, newFlightPlan, fieldsToUpdate);
    } catch (MuthurException e) {
      fail(e.getLocalizedMessage());
    }

    // will retrieve the updated object from the object service and compare
    // it
    // to the object which should accurately test whether the update was
    // applied

    assertObjectExists(flightPlan);
  }