public void testUpateAircraftTaxiInObjectAttributes() { // set the attributes to be updated // AircraftTaxiIn newAircraftTaxiIn = new AircraftTaxiIn(); // 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. newAircraftTaxiIn.setDataObjectUUID(aircraftTaxiIn.getDataObjectUUID()); newAircraftTaxiIn.setCallSign(callSign); newAircraftTaxiIn.setTailNumber(tailNumber); newAircraftTaxiIn.setTaxiInGate(newTaxiInGate); newAircraftTaxiIn.setTaxiInTimeMSecs(System.currentTimeMillis()); Set<String> fieldsToUpdate = new HashSet<String>(); fieldsToUpdate.add(EventAttributeName.taxiInGate.toString()); fieldsToUpdate.add(EventAttributeName.taxiInTimeMSecs.toString()); try { objectService.updateObjectAttributes( federationExecutionID, newAircraftTaxiIn, 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(aircraftTaxiIn); }