/** * Will call the parse method on the strategy object, passing it <code>given</code> to use as a * value. It will then perform <code>assertEquals(expected, result);</code> * * @param given the value to pass to the parse method * @param expected used to compare against the result of the parse method * @throws Exception */ public void validateValues(String given, Object expected) throws Exception { Object result = strategy.parse(element(given, qname), given); assertEquals(expected, result); }