// return odata;
//}
void dumpPlanets(Map<PlanetId,EphPlanet> data) {
for (Map.Entry<PlanetId, EphPlanet> entry : data.entrySet()) {
EphPlanet p = entry.getValue();
System.err.println("{ \"" + entry.getKey() + "\", \""
+ Double.toHexString(p.getLongitude()) + "\", \""
+ Double.toHexString(p.getLatitude()) + "\", \""
+ Double.toHexString(p.getSpeed()) + "\" },");
}
Map<PlanetId,EphPlanet> odata
= new EnumMap<PlanetId, EphPlanet>(PlanetId.class);
for (int i = 0; i < ernieStringData.length; i++) {
String[] s = ernieStringData[i];
EphPlanet p = new EphPlanet(PlanetId.valueOf(s[0]),
event,
Double.valueOf(s[1]),
Double.valueOf(s[2]),
Double.valueOf(s[3]));
odata.put(p.getPlanetId(), p);
}
assertEquals(data, odata);
}