@Test
public void testSetResponseContentTypeAndStatusShouldSetContentTypeAndStatusCodeOnResponse() {

    //GIVEN
    String statusCode = "404";
    Template template = new Template(null, null, null);
    ResponseDescriptorAttributes attributes = new ResponseDescriptorAttributes.Builder().delay(0).code(statusCode).template(template)
            .mimeType(MimeType.TEXT.getOfficialMimeType()).build();
    given(responseDescriptorDTO.getResponseDescriptor().getAttributes()).willReturn(attributes);
    //WHEN
    underTest.setResponseContentTypeAndStatus(response, responseDescriptorDTO);
    //THEN
    verify(response).setStatus(Integer.valueOf(statusCode));
    verify(response).setContentType(MimeType.TEXT.getOfficialMimeType());
}