	@Test
	public void marshallDOM() throws Exception {

		RewardConfirmation rewardConfirmation = mock(RewardConfirmation.class);
		when(rewardConfirmation.getDiningTransactionId()).thenReturn("w00t");
		DOMResult result = new DOMResult();
		marshaller.marshal(rewardConfirmation, result);
		DOMSource source = new DOMSource(result.getNode());
		assertThat(xpathTemplate.evaluateAsString(
				"/reward-confirmation/@dining-transaction-id", source),
				is("w00t"));
	}