@Test
public void testGetResponseDescriptorDTOAndRemoveShouldFindResponseDescriptorWithKey() {

    //GIVEN
    Map<String, ResponseDescriptorDTO> responseDescriptorMap = new HashMap<>();
    String key = "key";
    responseDescriptorMap.put(key, new ResponseDescriptorDTO(null, "", MSG_ID));
    Whitebox.setInternalState(underTest, "responseDescriptorMap", responseDescriptorMap);
    //WHEN
    ResponseDescriptorDTO actual = underTest.getResponseDescriptorDTOAndRemove(key);
    //THEN
    assertEquals(actual.getRequestBody(), MSG_ID);
}