@Test
public void testGenerateResponseShouldReturnTemplateResourceAndSetResponseHeadersWhenNoResponseFormatterDefined() {

    //GIVEN
    mockTemplateResource();
    //WHEN
    byte[] actual = underTest.generateResponse(request, response);
    //THEN
    verify(headerConfigurer).setResponseContentTypeAndStatus(response, responseDescriptorDTO);
    Assert.assertEquals(actual, templateResource);
}