@Test
public void testGenerateResponseShouldReturnTemplateResourceAndSetResponseHeadersWhenResponseFormatterDescriptorsArrayIsNull() throws InterruptedException {

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