@Test
public void if_formatNotSpecifiedShouldReturnRequestAcceptFormat() {

	when(request.getParameter("_format")).thenReturn(null);
	when(request.getHeader("Accept")).thenReturn("application/xml");
	when(acceptHeaderToFormat.getFormat("application/xml")).thenReturn("xml");
	String format = resolver.getAcceptFormat();
	assertThat(format, is("xml"));
	verify(request).getHeader("Accept");
}