@Test
public void testGetResponseDescriptorAndRemoveShouldNotDeleteEntryWhenKeyNotFound() {

    //GIVEN
    Map<String, ResponseDescriptorDTO> responseDescriptorMap = new HashMap<>();
    String key = "key";
    responseDescriptorMap.put("someOtherKey", new ResponseDescriptorDTO(null, "", MSG_ID));
    Whitebox.setInternalState(underTest, "responseDescriptorMap", responseDescriptorMap);
    //WHEN
    underTest.getResponseDescriptorDTOAndRemove(key);
    //THEN
    @SuppressWarnings("unchecked")
    Map<String, ResponseDescriptorDTO> newDescriptorMap = (Map<String, ResponseDescriptorDTO>) Whitebox.getInternalState(underTest,
            "responseDescriptorMap");
    assertEquals(newDescriptorMap.get("someOtherKey").getRequestBody(), MSG_ID);
}