public void testUpateAircraftTaxiOutObjectAttributes() { // set the attributes to be updated // AircraftTaxiOut newAircraftTaxiOut = new AircraftTaxiOut(); // 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. newAircraftTaxiOut.setDataObjectUUID(aircraftTaxiOut.getDataObjectUUID()); newAircraftTaxiOut.setCallSign(callSign); newAircraftTaxiOut.setTailNumber(tailNumber); newAircraftTaxiOut.setTaxiOutGate(newTaxiOutGate); newAircraftTaxiOut.setTaxiOutTimeMSecs(System.currentTimeMillis()); Set<String> fieldsToUpdate = new HashSet<String>(); fieldsToUpdate.add(EventAttributeName.taxiOutGate.toString()); fieldsToUpdate.add(EventAttributeName.taxiOutTimeMSecs.toString()); try { objectService.updateObjectAttributes( federationExecutionID, newAircraftTaxiOut, 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(aircraftTaxiOut); }