@Test
public void testCreateResponseDescriptorForStubMode() {

    //GIVEN
    String expectedMessage = "The requested URL was not found on this WILMA server.";
    Template expectedTemplate = new Template("template-for-stub-mode", TemplateType.TEXT, expectedMessage.getBytes());
    //WHEN
    ResponseDescriptor responseDescriptor = underTest.createResponseDescriptorForStubMode();
    ResponseDescriptorAttributes actualAttributes = responseDescriptor.getAttributes();
    //THEN
    assertEquals(0, actualAttributes.getDelay());
    assertEquals("404", actualAttributes.getCode());
    assertEquals(MimeType.TEXT.getOfficialMimeType(), actualAttributes.getMimeType());
    assertEquals(expectedTemplate, actualAttributes.getTemplate());
    assertNull(responseDescriptor.getResponseFormatters());
}