@Test
public void whenTheResourceIsHypermediaAddRestHeaders() throws Exception {

	when(formatResolver.getAcceptFormat()).thenReturn("xml");
	when(serialization.accepts("xml")).thenReturn(true);
	HypermediaResource object = mock(HypermediaResource.class);
	representation.from(object);
	verify(serialization).from(object);
	verify(headerHandler).handle(object);
}