E parsed = (E) strategy.parse(element(toParse, qname), toParse);
assertTrue(toEncode.getClass().equals(parsed.getClass()));
assertEquals(parsed.getClass().getName(), toEncode, parsed);
String encoded = strategy.encode(toEncode, null);
assertEquals(expectedEncoding, encoded);
}
private Calendar calendar(Integer... values) {
return calendar(TimeZone.getTimeZone("GMT"), values);