@Test
public void whenThereIsAFormatGivenShouldUseCorrectSerializerWithAlias() throws Exception {

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