HttpRequest request3 = readRoute(routeKey);
String result2 = request3.executeAsString();
assertEquals(200, request3.getStatusCode());
assertTrue(request3.isSuccessful());
GpxType gpxType = GpxUtil.unmarshal11(result2);
assertNotNull(gpxType);
assertEquals(Integer.toString(routeKey), gpxType.getMetadata().getName());
assertEquals(USERNAME, gpxType.getMetadata().getAuthor().getName());
assertEquals(USERS_URL + USERNAME + GPX_URL_POSTFIX, gpxType.getMetadata().getAuthor().getLink().getHref());
assertNull(gpxType.getMetadata().getDesc());
assertEquals(0, gpxType.getMetadata().getLink().size());
assertEquals("/Upload", gpxType.getMetadata().getKeywords());
Calendar expectedCal = Calendar.getInstance();
GregorianCalendar actualCal = gpxType.getMetadata().getTime().toGregorianCalendar();
actualCal.setTimeZone(expectedCal.getTimeZone());
assertTrue(actualCal.before(expectedCal));
assertEquals(1, gpxType.getRte().size());
RteType rteType = gpxType.getRte().get(0);
assertEquals(Integer.toString(routeKey), rteType.getName());
assertEquals("Description" + fileKey, rteType.getDesc());
assertEquals(FILES_URL + fileKey, rteType.getLink().get(0).getHref());
}