@Test
public void shouldUseTheFormatIfSupplied() throws NoSuchMethodException {

	when(formatResolver.getAcceptFormat()).thenReturn("json");
	String result = resolver.pathFor(method);
assertThat(result, is("/WEB-INF/jsp/dog/bark.json.jsp"));
}