@Test
public void whenSerializationDontAcceptsFormatItShouldntBeUsed() throws Exception {

	when(formatResolver.getAcceptFormat()).thenReturn("xml");
	when(serialization.accepts("xml")).thenReturn(false);
	Object object = new Object();
	representation.from(object);
	verify(serialization, never()).from(object);
}